[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: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Sep 1999 10:24:03 +0100 (BST)
Re: accessing the DTD
 Even though the DTD is not valid XML, it is being
 processed during XSLT right?

Not really.

the XSLT engine receives a parse tree from an XML parser (often as sax
events but that is beside the point here) and so gets no information
about the DTD at all. If the XML parser was non validating it may not
have looked at the DTD at all (for standalone docs) or only looked at it
to get specific information such as entity declarations needed for
parsing. Your enumerated attribute type may not have been looked at at
all. Even if a validating parser was used, the parser uses that
attribute type to flag an error on documents using an incorrect
attribute, but the actual parse tree passed to the XSLT engine only
reflects the document instance not the DTD declaration.

David


 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.