W3C home > Mailing lists > Public > public-forms@w3.org > March 2014

Access to arguments

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Wed, 19 Mar 2014 16:12:10 +0100
To: "Forms WG" <public-forms@w3.org>, "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.xcy5ukb8smjzpq@steven-ux21a>
I have a need to access the arguments given to a the URL that causes an  
XForm to load.

	http://www.example.com/form.xml?type=1&name=foo

One option would be a pseudo-instance:

	<setvalue ref="bar" value="instance('arguments')/name)" />

but I imagine it would be easier to implement a function:

	<setvalue ref="bar" value="argument('name')" />

Any opinions?

Steven Pemberton
Received on Wednesday, 19 March 2014 15:12:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:14:09 UTC