This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XML and HTML


I am having a problem. Maybe it's trivial.

I have an XML file that looks something like this:

<CARS>
	<MAKE>SUBARU</MAKE>
	<MAKE>FORD</MAKE>
	<MAKE>TOYOTA</MAKE>
	<MAKE>HONDA</MAKE>
</CARS>

<COMPUTERS>
	<MAKE>IBM</MAKE>
	<MAKE>DELL</MAKE>
	<MAKE>COMPAQ</MAKE>
	<MAKE>MAC</MAKE>
</COMPUTERS>

....

I want to have an html drop down list that would have choices
-->CARS
-->COMPUTERS
.....

then when the user selects cars, another drop down list on the same page has
the choices:
SUBARU
FORD
TOYOTA
HONDA

does anybody have any idea how i would do that.
I know how to access all the appropriate element. The problem is to
"dynamically" access different parts of the XML document
depending on what the user chose. I guess you could call it "event driven".

Thanks

Ben


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]