accessing the DTD

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

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