W3C home > Mailing lists > Public > www-forms@w3.org > June 2006

eXforms: exf:variable

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 22 Jun 2006 13:43:39 +0100
Message-ID: <449A907B.6060409@orbeon.com>
To: 'www-forms' <www-forms@w3.org>

All (but especially David),

Based on practical experience I am at this point 100% convinced that 
support for variables in XForms views (not so much in models) is 
necessary (hopefully for XForms 1.2 or 2.0), so it's great to see that 
other people have recognized this need and are experimenting with it.

The only thing that bugs me with eXForms's variable proposal [1] is that 
it uses a @value attribute, and not a @select attribute.

I understand that @value is already used on xforms:output, but it is 
confusing, knowing XSLT, not to have @select instead of @value.

In addition to the confusion due to the difference with XSLT, I think 
that using @value is not correct because the variable can hold anything 
that can be returned by an XPath expression, in particular a node-set, 
and the term "value" is usually understood to mean "a string value". See 
for example xsl:value-of vs. xsl:copy-of for another example of this.

So I strongly suggest the use of @select instead of @value there.


[1] http://exforms.org/variable.html

Orbeon - XForms Everywhere:
Received on Thursday, 22 June 2006 12:43:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC