Re: accessing the DTD

Subject: Re: accessing the DTD
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Sep 1999 10:24:03 +0100 (BST)
 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