Actions
Bug #2676
closedXSL Transformation fails on the tunnel attribute
Start date:
2016-03-15
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
9.6.0.9
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Using the Saxon/X PHP API 1.0.0.
The stylesheet compilation fails on param-declarations with the tunnel attribute (https://www.w3.org/TR/xslt20/#tunnel-params)
Example Stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="2.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:call-template name="test">
<xsl:with-param name="xxx" select="'test'"/>
</xsl:call-template>
</xsl:template>
<xsl:template name='test'>
<xsl:param name="xxx" tunnel="yes" />
<p>xxx: <xsl:value-of select="$xxx"/></p>
</xsl:template>
</xsl:stylesheet>
Error Message
Error at xsl:call-template on line 12 column 37 of style.xml: XTSE0680: Parameter xxx is not declared in the called template
If you leave out the tunnel attribute, the stylesheet compiles.
Please register to edit this issue
Actions