Hello, this posting did not generate a lot of discussions ... :-(
Anyway, I ended up deciding to "import" the code of XMLEntityManager#getUserDir() into Ant's FileUtils.toURI(). This fixes the issue with parsing an InputSource for a XML document located in a non ASCII path, and including SYSTEM entities in the same path. I do not know who has commit rights in org.xml.sax.InputSource, but I wish that the Java Doc of this class would define more precisely what is a SystemId or refers to a RFC explaining* how the SystemId is coded when the path is not Ascii. Would it be useful to trigger David Megginson and David Brownell concerning this ? * Cheers, Antoine Antoine Levy-Lambert wrote: >Hello, > >I am referring to : >http://issues.apache.org/jira/browse/XERCESJ-825 >and >http://issues.apache.org/bugzilla/show_bug.cgi?id=37348 > >I would like to know if a SystemId is basically the same a a file:// URI ? > >Are non Ascii characters in path all supposed to be encoded in a SystemId ? > >I have realized that if I change the routine JAXPUtils.getSystemId(File >file) in ant, so that it returns > >File.toURI().toAsciiString() which encodes non ascii characters, > >then I can transform an XML document containing entities and located in >a non ASCII path. > >Cheers, > >Antoine > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
