I solved the problem. Actually it had nothing to do with the base uri. It happens that the Document was provided by an object that read the svg file with the SAXSVGDocumentFactory.
When I use the SAXSVGDocumentFactory directly in my test case to parse the svg input all works fine. The weird thing is that the providing object doesn't change much of the Document. It just uses it with JXPath to check some attributes but it doesn't change them. I will check more carefully that class and will post the results if they are of interest. > > For the base uri I set in the svg source or with > > setURI(), I have tried also > "/http://xml.apache.org/" > > or "/http://xml.apache.org/my-doc" but with the > same > > results. > > Neither of these is a valid url, I suspect the > second is > coming close to what you want > 'http://xml.apache.org/myDoc.svg' Correct the leading slash was not supposed to be there. Just this annoying thing of using copy and paste inside the small text area of a web email form. Thanks for your help. __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
