xsl-list
[Top] [All Lists]

Re: [xsl] Strange Saxon error

2010-04-14 12:58:42
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>