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

xforms:item and xforms:itemset: label and value bound to non-existing nodes

From: Erik Bruchez <erik@bruchez.org>
Date: Tue, 18 Apr 2006 12:25:53 -0700
Message-ID: <44453D41.3090809@bruchez.org>
To: Xforms W3C WG <www-forms@w3.org>

All,

I am not sure that the spec is very explicit on this matter. Consider:

<xforms:item>
   <xforms:label ref="some-label"/>
   <xforms:value ref="some-value"/>
</xforms:item>

Now what if "some-label" doesn't point to a node? This is probably the
same as, say, an xforms:input label not pointing to a node. Does this
mean that the XForms engine handles:

o The label as non-relevant?
o The label as an empty string?
o The whole item as not available for selection?

Similar scenario with some-value. Does the XForms engine handle:

o The value as an empty string?
o The whole item as not available for selection?

(I can't imagine what it could mean for just the value to be
"non-relevant").

Same question when "unrolling" the xforms:itemset. Say you have
something like this:

<xforms:item nodeset="item">
   <xforms:label ref="some-label"/>
   <xforms:value ref="some-value"/>
</xforms:item>

pointing to the following:

<item>
   <some-label>One</some-label>
   <some-value>1</some-value>
<item>
<item>
   <some-label>Two</some-label>
   <oops>2</oops>
<item>
<item>
   <some-label>Three</some-label>
   <some-value>3</some-value>
<item>
<item>
   <oops>Four</oops>
   <some-value>4</some-value>
<item>

-Erik
Received on Tuesday, 18 April 2006 19:26:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT