[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dealing with doctype dtd's
> But I would like to be able to identify the existing doctype in the original > xml, and output it in the new XML without changing it, or omit it altogether > if it does not exist. It can't be done, especially the SYSTEM declaration part. An XSLT processor uses an XML parser read in the source document, parse it, and build a source tree for the XSLT processor to go through when applying templates. While the XML parser may look at the input document's DOCTYPE declaration to see where to find the DTD, it doesn't pass this information about where it found the DTD to the XSLT processor. So, the XSLT processor has no way of knowing whether the DTD was stored in sample1.dtd, sample2.dtd, or included in as part of group of internal DTD subset declarations (i.e. included between square braces in the DOCTYPE declaration instead of being stored in a separate file referenced by a SYSTEM declaration.) Sorry! Bob DuCharme www.snee.com/bob <bob@ snee.com> "The elements be kind to thee, and make thy spirits all of comfort!" Anthony and Cleopatra, III ii XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|