Re: [xsl] Passing side documents to stylesheet (in Java)

Subject: Re: [xsl] Passing side documents to stylesheet (in Java)
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 25 Oct 2006 19:00:27 +0100
On 10/25/06, Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx> wrote:
Hi,

probably this is an old issue, but I'm struggling to find a solution.

My XSLT stylesheet is using several side documents that are
constructed at run-time.

Back in PHP I was passing them using a stream wrapper and a custom
"arg:" protocol. Then, for example, the stylesheet could get access
through document('arg://mydoc').

Obviously, that doesn't work in Java. So how do you do it in Java? I'm
using JDK 1.5 and the standard java.xml.transform package.

You use a CustomURIResolver to intercept the call and the return the document.


cheers
andrew

Current Thread