Subject: Re: accessing the DTD From: "Larry Mason" <Larry_Mason@xxxxxx> Date: Wed, 1 Sep 1999 17:04:50 -0500 |
Thanks for the replies. Even though the DTD is not valid XML, it is being processed during XSLT right? My hope was I could get a reference to the valid set of values for the attribute somehow. I really don't know the DTD. I'm trying to devise a way to interpret one attribute that defines data type and produce output accordingly. If the data type was boolean, then perhaps I produce a checkbox. If the data type were enum, then maybe a combobox. I can control what attribute holds the data type as well as what attribute has the value, but I wanted to use the same latter attribute to determine the range of values for certain data types. Make sense? I guess my solution will be along the lines of the following: <!ATTLIST car color (red|yellow|blue) "red"> <!ATTLIST car color_enum CDATA "red|yellow|blue"> I can tokenize the color_enum ( I hope ), procesing it in conjunction with the attribute that holds the value (color in this case). At least I have something to do tonight!! Larry David Carlisle <davidc@xxxxxxxxx> on 09/01/99 04:44:47 PM Please respond to xsl-list@xxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxx cc: (bcc: Larry Mason/Dallas/US/i2Tech) Subject: Re: accessing the DTD > My DTD has the valid values but I can't seem to get > access to the set. DTDs are not in the XPath data model. DTDs are not well-formed XML. I don't know if that's the reason why. You won't have access to the DTD. Perhaps you could refer to the DTD as replacement text for an entity, and then do some voodoo with XSLT to parse that string? You could do, but in this case, if you know enough about the dtd to write a stylesheet that formats all the allowed elements, you probably know enough just to enter the list of allowed attribute values into the stylesheet. Sorry about the low tech solution:-) David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: accessing the DTD, David Carlisle | Thread | Re: accessing the DTD, David Carlisle |
Re: accessing the DTD, David Carlisle | Date | ANN: 4XPath 0.7.0, uche . ogbuji |
Month |