Re: [xsl] Java XSLT transformers and document('') problem

Subject: Re: [xsl] Java XSLT transformers and document('') problem
From: Owen Rees <owen.rees@xxxxxx>
Date: Mon, 08 Sep 2008 08:28:12 +0100
--On Monday, September 08, 2008 09:10:47 +0600 LS wrote:

Is there any way to create transformation on-the fly and use it without
temporary dumping it to file?
My question depends only on document('') function, because all of the
others seems like ok

You need to set the system identifier on the Source from which you create the Transformer and set the URIResolver for that Transformer to deliver another Source with the same data when asked to resolve that system identifier.


When you create a Source from a File the system identifier will be set to the URI of the file and the default URIResolver can use that URI to create a new Source reading from that file. You have to set up the equivalent correspondence yourself when creating the Source in a way that does not automatically set the system identifier.

--
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

Current Thread