[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Strange Saxon error


Subject: Re: [xsl] Strange Saxon error
From: Liam R E Quin <liam@xxxxxx>
Date: Wed, 14 Apr 2010 13:58:22 -0400

On Wed, 2010-04-14 at 13:29 -0400, Stephen Arbour wrote:
> Hi all,
> 
> We have a customer that was using Saxon 9.1.0.7j using an XSLT
> transform that was created by a third party. When they upgraded to a
> version that uses Saxon 9.2.0.2, they started receiving this error:

You might find the saxon mailing list more appropriate.

> 
> net.sf.saxon.trans.XPathException: Cannot read a document that was
> written during the same transformation:
> file:/C:/Program%20Files/K4%20XML%20Exporter/data/xsl/temp/21missouri4.xml

Sounds right to me. You might want to consider (1) holding the
document's contents in a variable so you don't need to read it again,
(2) running XSLT twice, (3) reworking the transformation so you don't
need to re-read values you already computed... e.g. you may find that
recomputing them is perfectly fast enough.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org


Current Thread
Keywords