W3C home > Mailing lists > Public > www-forms@w3.org > November 2001

tree-structured select one/many

From: Jim Wissner <jim@jbrix.org>
Date: Sat, 17 Nov 2001 18:57:44 -0500
Message-Id: <5.0.0.25.2.20011117183858.03b43898@pop3.kattare.com>
To: www-forms@w3.org

Hi,

Is there a way to construct a selectOne or selectMany that has choices 
ordered in a tree format?  For static data it would make sense to allow for 
this, rather than a multi-selectOne with each successive one being 
dynamically created by the previous one's choice.  In addition it would 
allow for better, more flexible and intuitive visual implementations than a 
growing series of lists like we see in today's forms (and, from what I can 
tell, is continued in xforms).

Could I legally just make something like:

<selectOne>
	<caption>Select vehicle:</caption>
	<choices>
		<item><caption>Cars|Sport|Corvette</caption></item>
		<item><caption>Cars|Sport|Viper</caption></item>
		<item><caption>Cars|Luxury|Lexus</caption></item>
		<item><caption>Cars|Economy|Trabant</caption></item>
		<item><caption>Boats|Detroit Iron</caption></item>
		<item><caption>Bike|Mongoose|Sniper</caption></item>
		<item><caption>Bike|Mongoose|Fuzz</caption></item>
	</choices>
</selectOne>

...and use '|' (or whatever) as a delimiter to create the tree? Is there 
another way to accomplish this in a cross-processor way (I suspect this way 
isn't)?

Thanks,
Jim


--
www.jbrix.org
Open Source Software
Java - XML - Speech Recognition
Received on Saturday, 17 November 2001 18:54:32 GMT

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