tree-structured select one/many

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 UTC