hi,
tested with xalanc 1.5 (release)
as far as i know an xsl:param in same scope and with same name is an syntax
error (or an runtime error).
xalanc does not report an error here, but just keeps the first value
assigned.
test-stylesheet:
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:param name="myParam" select="'VALUE-1'"/>
<xsl:value-of select="$myParam"/>
<!-- the following is an error -->
<xsl:param name="myParam" select="'VALUE-2'"/>
<xsl:value-of select="$myParam"/>
</xsl:template>
output is: "VALUE-1VALUE-1"
is there something i did not understand right?
thanks,
robert
p.s.: same thing with an
<xsl:param name="someName" select="whatever>body value is wrong in this
case</xsl:param>
this select and body-mix is also not reported for xsl:variable,
but the redefinition in same scope of xsl:variable is reported