I am using Java 1.3.1 (necessarily not 1.4.1), the parser is
"org.apache.xerces.parsers.SaxParser".

The systemId passed as a parameter to the resolveEntity method of
EntityResolver interface appears to have been modified incorrectly.

If the SYSTEM entity specifies "../otherdir/file.xml", then I would expect
the systemId passed to resolveEntity to be either EXACTLY as specified in
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.

If someone knows how to "resolve" (ha-ha) this problem I would greatly
appreciate the help.   Do other parsers behave differently?

Thanks,
Phil Dickinson
Aicom Limited



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

Reply via email to