Subject: AW: [xsl] Xalan complains about relative DTD URL in transformed d ocument From: Costantino.Sertorio@xxxxxxxxxxxx Date: Fri, 30 Aug 2002 14:35:43 +0200 |
Hi David, simple guess: could it depend on the space in the DTD name? have you tried to rename the DTD to a name with no spaces? Costantino -----Ursprüngliche Nachricht----- Von: David Byrden [mailto:David@xxxxxxxxxx] Gesendet am: Freitag, 30. August 2002 14:26 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: [xsl] Xalan complains about relative DTD URL in transformed document I'm using JDK14 to transform some XML documents that reference a DTD with a relative URL. I'm getting this exception: org.xml.sax.SAXParseException: Relative URI "../../text bodies.dtd"; can not be resolved without a base URI. Believe me I've spent time on this, and the code I'm using now is from a solution posted to this list by J.Pietschmann: Transformer tr = TransformerFactory.newInstance().newTransformer( transform ) ; SAXParserFactory saxParserFactory = SAXParserFactory.newInstance() ; saxParserFactory.setValidating( false ) ; XMLReader xmlReader = saxParserFactory.newSAXParser().getXMLReader() ; xmlReader.setEntityResolver( new MyResolver() ) ; tr.transform( new SAXSource( xmlReader, src ), res ) ; Unfortunately it does not work, in that the MyResolver is not even called on to resolve anything before the exception occurs. Any ideas? I do want to use a relative URL for the DTD. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Node selection based on p, Hunsberger, Peter | Thread | [xsl] XSLDebugger Version??, Sandra Mcdonnell |
[xsl] Node selection based on paren, katharine wykes | Date | Re: [xsl] Node selection based on p, ronald heller |
Month |