You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/04/14 22:06:48 UTC

DO NOT REPLY [Bug 19009] - Relative pathed ENTITY references do not use original document location as base URI

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19009>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19009

Relative pathed ENTITY references do not use original document location as base URI

gmarcy@us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From gmarcy@us.ibm.com  2003-04-14 20:06 -------
Do you have any thoughts on how the parser is supposed to know the base uri of 
the document entity when you are not passing it to the parser?  In particular, 
you are calling the following entry point in DocumentBuilder:

    public Document parse(InputStream is);

If you want the parser to support relative uris then you need to call the entry 
point that passes the base-uri for the document entity stream, namely:

    public Document parse(InputStream is, String systemId);

or you could just pass the File object directly to the document builder and let 
it extract the base-uri and open the stream for you, ala:

    public Document parse(File f);

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org