Dear Phil,

> the entity declaration OR if it must be "absolutized", then 
> it should be
> absolutized relative to the containing (or parent) XML 
> document. Instead, it
> is absolutized from the directory that my Java app is running 
> in! UGH.  This
> MUST be a bug!  Surely when someone authors an XML document 
> and provides a
> relative location for a fragment, they intend the relative 
> link always to be
> from the parent document wherever it is copied to, not some 
> arbitrary setup
> determined by the environment the XML is being parsed in.

My uneducated guess would be that you are parsing from an inputsource
based on a stream, is that correct? So something like:
    InputSource is = new InputSource(someStream);
    parser.parse(is);

If so, the problem (bug?) is that you have provided no way for the
parser to determine where to resolve paths to the resource you are
parsing, it only has this stream of characters or bytes, no origin.
So, again *if* this is the case, you should set the system id on the
inputsource:
        is.setSystemId(yourSystemId);

Kind regards,

--Sander.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to