Actions
Bug #2676
closed![Author: Philipp F](https://www.gravatar.com/avatar/d1d3a624511cb941f585c0347601d36a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
XSL 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