Oddly enough, this error is also thrown when I add use-when="false()" to the first xsl:template instruction.

Cheers,
Abel
 

On 18-7-2013 12:44, Abel Braaksma wrote:
I tried the following stylesheet:

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

    <xsl:mode streamable="yes"/>

    <xsl:template match="/">
        <xsl:apply-templates select="
            unparsed-text-lines('test.xsl')" >
        </xsl:apply-templates>
    </xsl:template>
   
    <xsl:template match="~xs:string">
        <xsl:value-of select="., '&#xA;'" />
    </xsl:template>
</xsl:stylesheet>

The stylesheet runs correctly when using streamable="no", but it throws the following exception when running it with streamable="yes":

Description: Fatal error during transformation: java.lang.ClassCastException: Unable to cast object of type 'net.sf.saxon.type.BuiltInAtomicType' to type 'net.sf.saxon.pattern.NodeTest'.

I used both 9.5.0.2 (Java, licensed) and 9.5.1.1 (.NET, trial) version of Saxon EE, both raise the same exception.

Cheers,
Abel



------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help