Generating Drop Down HTML tags with XSL

Didier PH Martin martind at
Thu Jan 20 13:51:02 GMT 2000

Hi Kiera,

Kiera said:
	Is there anyway of creating  a dropdown html menu using XSL (Option,
Value). The Menu information will be stored
in the XML document calling this XSL stylesheet ?

	Can Javascript in XSL access the html code it contains ?

	Can JavaScript in XSL access the DOM object for the XML document
that calls it ?

Didier replies:
Yes you can if you create an XSLT style sheet that will transform the XML
document into HTML and this latter contains a script. You can use the XML
elements as data source for your script and have the script use the DOM. Be
cautious however since Netscape and Microsoft have different APIs.

Didier PH Martin
Email: martind at
Conferences: Web New York (
Book to come soon: XML Pro published by Wrox Press

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom at the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email at your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.

More information about the Xml-dev mailing list