- From: Alessandro Triglia <sandro@mclink.it>
- Date: Thu, 27 Jul 2006 13:33:15 -0400
- To: "'Steven Pemberton'" <steven.pemberton@cwi.nl>, "'[Public XForms]'" <www-forms@w3.org>
Hi Steven, Thanks for your answer. See below. > -----Original Message----- > From: Steven Pemberton [mailto:steven.pemberton@cwi.nl] > Sent: Thursday, July 27, 2006 10:36 > To: Alessandro Triglia; [Public XForms] > Subject: Re: Wildcard in the <value> element > > On Fri, 21 Jul 2006 19:36:36 +0200, Alessandro Triglia > <sandro@mclink.it> > wrote: > > > I am looking at the XForms schema at > > http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd. It > is unclear > > to me why the <value> element supports mixed content (as > opposed to > > simple content). > > > > The <value> element can only occur within an <item> or an > <itemset>. No? > > > >> From the paragraphs beginning with "Data Binding > Restrictions: any > >> simpleContent" (in Select and Select1), I infer that, when > a <value> > >> occurs within an <item>, it must be a simple type. Am I wrong? > > > > As for <itemset>, it is unclear to me how <value> can be > used within an > > <itemset>, given that a <value> would provide a single > value and not a > > nodeset. The specification of the <itemset> element > describes the use > > of the <copy> element but not the use of the <value> element. > > > > So my question is, in what cases (if any) would a <value> element > > contain a child element? > > Hello Allessandro, > > I have to admit that I had to rack my brains to find an > answer too. It was > obvious once pointed out: creating a constructed value using <output>. > > <value>there were <output ref="n"/> <output > ref="colour"/> > bottles</value> It is still not really obvious to me. The text (8.2.3) does not specify this usage, so even if I put an <output> element in the content of a <value> element, there is nothing that says how an implementation should handle it. Also, apparently the <value> element only occurs within an <item> or <itemset> element. If I put a form control (output) in the content of a <value> element within an <item> element, does this mean that the output form control must be rendered? I am not saying yes or no, but I think that such a usage, if really allowed, should have been explicitly specified in 8.2.3, but it's not. Am I missing something? By the way, I started looking at XForms for the first time a couple of weeks ago, and I find it beautiful. Great job, guys! Alessandro > > Steven >
Received on Thursday, 27 July 2006 17:34:51 UTC