Project

Profile

Help

Bug #2676

closed

XSL Transformation fails on the tunnel attribute

Added by Philipp F about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Low
Category:
Saxon Internal
Start date:
2016-03-15
Due date:
% Done:

0%

Estimated time:
Found in version:
9.6.0.9
Fixed in version:
Platforms:

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

Also available in: Atom PDF