Project

Profile

Help

Bug #6560 » ClassCastExceptionCrash.xslt

Test stylesheet demonstrating java.lang.ClassCastException - Adrian Bird, 2024-10-15 11:54

 
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" />

<xsl:template name="xsl:initial-template">
<root>
<xsl:variable name="var01">abcdef</xsl:variable>

<xsl:analyze-string select="$var01/text()" regex="def">
<xsl:matching-substring>
<yes value="{.}" />
</xsl:matching-substring>
</xsl:analyze-string>
</root>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)