W3C home > Mailing lists > Public > www-forms@w3.org > May 2002

RE: A few XForms Questions...

From: Micah Dubinko <MDubinko@cardiff.com>
Date: Tue, 14 May 2002 21:28:38 -0700
Message-ID: <E840F0B7E6189547BDB91DA8BF2228AB28C4B7@csmail.cardiff.com>
To: "'Dan Dennedy'" <DDennedy@digitalbang.com>, "Dan G. Switzer, II" <dswitzer@oar.net>, www-forms@w3.org
Dan,

Bear with us. We're discussing a closely related issue, and we don't want to
give the wrong answer. Later this week, if all goes well. Thanks! -m

-----Original Message-----
From: Dan Dennedy [mailto:DDennedy@digitalbang.com]
Sent: Tuesday, May 14, 2002 6:12 AM
To: Dan Dennedy; Micah Dubinko; Dan G. Switzer, II; www-forms@w3.org
Subject: RE: A few XForms Questions...


> I'd like to return to this discussion...

No one is interested?
 
> From: Micah Dubinko 
> > 
> > From: Dan Switzer
> > 
>  
> > >2) The ability to create n-related select boxes.
> > 
> > We do specify heirarchial selection items, but that's not 
> exactly what

I am working on an implementation of hierarchial <selectOne> and
<selectMany>. If I want to mix some static high level items and dynamic
lower level items, it is fairly obvious to use, e.g.:
 
<selectOne ref="">
	<caption>Select a category and keyword</caption>
	<choices>
		<caption>Category A</caption>
		<itemset nodeset="">
			<caption ref=""/>
			<value ref=""/>
		</itemset>
	</choices>
	<choices>
		<caption>Category B</caption>
		<itemset nodeset="">
			<caption ref=""/>
			<value ref=""/>
		</itemset>
	</choices>
<selectOne>

From the spec, an itemset can not contain an itemset, but a choices can
contain itemset or choices. If I want the hierarchy totally dynamic using
itemset, is the following representation correct?

<selectOne ref="">
	<caption>Select a category and keyword</caption>
	<choices>
		<itemset nodeset="">
			<caption ref=""/>
			<value ref=""/>
		</itemset>
		<choices>
			<itemset nodeset="">
				<caption ref=""/>
				<value ref=""/>
			</itemset>
		</choices>
	</choices>
<selectOne>

Does it adequately imply that the second itemset is dependent upon the first
itemset similar to a nested repeat? This representation does not seem as
strong as the nested repeat. I would prefer something like the following
where the nodeset context is more obvious:

<selectOne ref="">
	<caption>Select a category and keyword</caption>
		<itemset nodeset="">
			<caption ref=""/>
			<value ref=""/>
			<itemset nodeset="">
				<caption ref=""/>
				<value ref=""/>
			</itemset>
		</itemset>
<selectOne>

+-DRD-+
Received on Wednesday, 15 May 2002 00:40:52 GMT

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