[Home] [By Thread] [By Date] [Recent Entries]

  • To: "Xml-Dev (E-mail)" <xml-dev@l...>
  • Subject: Dynamic XML/XSL
  • From: "Chen, Gin" <Gin_Chen@t...>
  • Date: Mon, 12 Nov 2001 15:42:10 -0500

Hi all,
	I have an XML that looks like so:
	<?xml version="1.0"?>
	<mystuff>
	   <category categoryname="Sports">
		<stuff>
			<stuffid>1</stuffid>
			<stuffname>Baseball Glove</stuffname>
		</stuff>
		<stuff>
			<stuffid>2</stuffid>
			<stuffname>Football</stuffname>
		</stuff>
	   </category>
	   <category categoryname="Kitchen">
		<stuff>
			<stuffid>3</stuffid>
			<stuffname>Blender</stuffname>
		</stuff>
	   </category>
	   <category categoryname="Car">
		<stuff>
			<stuffid>4</stuffid>
			<stuffname>Muffler</stuffname>
		</stuff>
		<stuff>
			<stuffid>5</stuffid>
			<stuffname>Steering Wheel</stuffname>
		</stuff>
		<stuff>
			<stuffid>6</stuffid>
			<stuffname>Tires</stuffname>
		</stuff>
	   </category>
	</mystuff>

I want to have a page that has a select list (<SELECT><OPTION> using HTML in
the XSL) that shows all the categorynames. In addition, I want to have the
remainder of the page show the stuff in that category. But I want it to be
dynamic so that if I change to a new category in the select list the items
displayed will update to those in that category. I know how to do this with
Javascript or using JSP page codes. But I would like this to be a pure XML
solution. Does anyone know of a good place to get ideas on how to do this?
Thanks,
-Tim

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member