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

Subject: Re: [xsl] Java XSLT transformers and document('') problem
From: LS <leonid@xxxxxxxxxxxxx>
Date: Mon, 08 Sep 2008 13:32:08 +0600
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.
thank you! but can you provide a sample code or point me to some friendly example?

Current Thread