[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

accessing the DTD

Subject: accessing the DTD
From: "Larry Mason" <Larry_Mason@xxxxxx>
Date: Wed, 1 Sep 1999 12:48:07 -0500
accessing the dtd

I would like to produce comboboxes or radio buttons based on the list of valid
values for an attribute.  My DTD has the valid values but I can't seem to get
access to the set.  I can get to the active value of the attribute only.

<!ELEMENT car (#PCDATA)>
<!ATTLIST car color (red|yellow|blue) "red">

<car color="blue"/>

This gives me the color of the car, blue, but not the fact that the color could
have been red or yellow.

<xsl:template match="car">
  color is <xsl:value-of select="@color"/>
</xsl:template>

I've checked the FAQ, the draft and various other links but can't find the
magic.  Thoughts anyone?
Thanks,
Larry Mason



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.