blob: 87fe24f0618e5bbf50645eb146473c5cfd8efb44 [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: variableerr16 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.2 Values of Variables and Parameters -->
<!-- Purpose: Try to set same in-template param twice using different instructions, variable first -->
<!-- ExpectedException: Duplicate variable declaration. -->
<!-- Author: David Marston -->
<xsl:template match="doc">
<xsl:variable name="partest" select="contains('foo','of')"/>
<xsl:param name="partest" select="contains('foo','o')"/>
<out>
<xsl:value-of select="$partest"/>
</out>
</xsl:template>
</xsl:stylesheet>