Re: DOCTYPE handling in XML
Liam Quin <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Oct 21, 2008 at 10:44:11AM -0500, Peter T Cash wrote: > For what it's worth, this appears to be a general limitation of XML tools. > I've been writing XSLs and running them with the Saxon parser; I ran into > the same problem. There's apparently no way to get an XSL transform to > process an XML document and preserve ENTITY declarations. This appears to > be a side effect of the fact that the parser won't copy the DOCTYPE > declaration to the output, and the ENTITY declarations are part of the > DOCTYPE. It's nothing of the sort. It's because most XML tools work on the result of parsing XML, and entities are expanded during parsing. You can use XInclude as an alternative mechanism in many cases. Liam -- Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/ http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/ _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs