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: 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:15:53 -0500

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

>
> The root of the document is created from an InputStream rather than a file
> and I'm guessing that this is the problem. If so, is there a workaround or
> can XOM/XInclude not be used with streams? OTOH if it's just my learning
> curve please suggest other fixes.
>

You're going to need to tell the Builder where the base URI is. I.e
use the method

public Document build(InputStream in, String baseURI)

rather than simply

public Document build(InputStream in)


--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page