You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by John Gentilin <ge...@eyecatching.com> on 2004/04/23 20:55:24 UTC

Workaround for using DocType and Xalan 2.4.1 ??

Besides using a DOMSource, is there a work around for using
a DocType declaration to define entities and NOT get the 
submission to System.err stating that all the other elements
must be declared ??

I know this is fixed with Xalan ~ 2.5.1 but I am stuck using
a vanilla JRE which forces me to use 2.4.1.

Thanks
John G



Re: Workaround for using DocType and Xalan 2.4.1 ??

Posted by Joseph Kesselman <ke...@us.ibm.com>.



One possible approach to get what you want: Instantiate your own SAX
parser, configure it to resolve entities but not validate, and pass that to
Xalan as a SAXSource.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk