[oXygen-user] xsl:result-document and Saxon-SA gives "Cannot write to a URI that has already been read"
Sorin Ristache
Thu Jun 25 04:11:53 CDT 2009
Hello,
It was a bug in previous versions that we fixed already: the output
stream of an xsl:result-document without the href atttribute is bound to
the same system ID as the XML input which is already opened for reading.
I cannot reproduce it with the Oxygen 10.2 build that is available on
the Oxygen website. What is your Oxygen build number? Anyway it has to
work for you too if you use the following Oxygen 10.3 pre-release build:
http://www.oxygenxml.com/update/10.2/All/oxygen.tar.gz
Version 10.3 will be released in a couple of days.
Regards,
Sorin
Andrew Welch wrote:
> Hi,
>
> Using oXygen 10.2, this stylesheet runs as expected with Saxon B
> 9.1.0.6 (the output is <foo/>)
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> exclude-result-prefixes="xs"
> version="2.0">
>
> <xsl:template match="/">
> <xsl:result-document>
> <foo/>
> </xsl:result-document>
> </xsl:template>
> </xsl:stylesheet>
>
> However if you change the transform engine to Saxon SA, it fails with:
> "Cannot write to a URI that has already been read: ....."
>
> cheers
More information about the oXygen-user
mailing list