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

Re: accessing the DTD

Subject: Re: accessing the DTD
From: "Alfred Towell" <alfred@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Sep 1999 09:07:48 -0500
alfred towell
Ibm has an early access version of their xml4j parser that stores a schema
(XML) version of the dtd as a child of the DocType node.  This is
acknowledged to be in violation of the DOM standard.  It is, however, very
useful.

The download is of binary only, but perusal of the API and the printouts of
the information show it is extremely useful for many purposes.  My own use
is for automatic production of XML from a database of travel information for
highly dynamic reports of Chicago area traffic problems.  Other solutions of
this problem by Oracle and others require extremely difficult programming
solutions that can be avoided by use of the available DOM grammar.

I see no reason why this information should not be provided and why XSLT
transformations should not be done on it and/or be guided by it.

Alfred
----- Original Message -----
From: Larry Mason <Larry_Mason@xxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, September 01, 1999 12:48 PM
Subject: 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
>
>


 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.