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: Peter Murray-Rust <pm286 AT cam.ac.uk>
  • To: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • 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 16:48:12 +0000

On Mon, Mar 7, 2011 at 3:42 PM, Elliotte Rusty Harold
<elharo AT ibiblio.org>wrote:

> 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.
>

I understand.

BTW the processed XML (i.e. after the XInclude processing or building)
appears to have additional xml:base attribute(s) - I assume that is (a)
normal and (b) necessary or at least harmless.

P.


> --
> Elliotte Rusty Harold
> elharo AT ibiblio.org
>



--
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069




Archive powered by MHonArc 2.6.24.

Top of Page