[oXygen-user] xsl:result-document with no href causes "Cannot write to a URI that has already been read" err-XTRE1500

Andrew Welch
Tue Oct 28 06:22:19 CDT 2008


Hi,

Congratulations on integrating Saxon-SA - a great move!

I think there is a slight issue, this stylesheet (when run against
itself with no output file given) causes the exception "Cannot write
to a URI that has already been read":

<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="2.0">

<xsl:template match="/">
    <xsl:result-document validation="strict">
        <foo/>
    </xsl:result-document>
</xsl:template>

</xsl:stylesheet>

Also, in the "Saxon SA" specific options, -val and -vlax should be
radio buttons shouldn't they (with a third option for skip)?  I
personally would like like the default to be -vlax rather than -val,
otherwise you are forced to disable it if you want to use Saxon SA but
aren't using input validation.

One last thing, an inbuilt "xslt 2.0" file/new template would be great, with:

<xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs">



thanks
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/



More information about the oXygen-user mailing list