![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XSLT: Relative URI "my.dtd" can not be resolved without a base URI [Thread Next] Re: XSLT: Relative URI "my.dtd" can not be resolved without a base URITo: NULL Date: 8/4/2004 12:41:00 AM Pavel wrote: > Greetings to all - > > I'm having a problem processing xml with relative dtd URI specified > using XSLT: > > <?xml version="1.0" encoding="utf-8" ?> > <!DOCTYPE mydoc SYSTEM "my.dtd"> > <mydoc> > ... > </mydoc> > > I do not have a control over the original xml but I have my.dtd in the > app classpath. I'm getting the TransformerException: Relative URI > "my.dtd" can not be resolved without a base URI. > > How do I tell to javax.xml.transform.Transformer where to find the dtd > file w/out specifying the base URI (or any other modifications of the > original xml)? The default is usually to look for the DTD in the same place as the document instance. If you can work out where Java thinks the document is coming from, and put the DTD in the same place (directory/pipe/stream) then it should find it. ///Peter -- "The cat in the box is both a wave and a particle" -- Terry Pratchett, introducing quantum physics in _The Authentic Cat_ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
