Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Problem: Base URI for XInclude

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: Peter Murray-Rust <pm286 AT cam.ac.uk>
  • Cc: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Problem: Base URI for XInclude
  • Date: Mon, 7 Mar 2011 10:42:24 -0500

On Mon, Mar 7, 2011 at 10:33 AM, Peter Murray-Rust <pm286 AT cam.ac.uk> wrote:

> Thanks,
> I am trying to work out why it worked with DTD/ENTITYs and not with XInclude
> - presumably because the filename of the DTD was regarded as a baseURI or
> similar? The XML files starts:
>
> <!DOCTYPE template SYSTEM
> "src/main/resources/org/xmlcml/cml/converters/compchem/compchem.dtd" [...
>

It ultimately comes down to SAX and whether the SAX Locator interface
is able to determine a base URI. If it does, XOM uses that, but when
all you give it is an input stream it has no way of knowing.

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page