You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Evgeniy Strokin <ev...@yahoo.com> on 2002/05/29 22:30:43 UTC

What difference between xsl:param and xsl:variable?

What difference between xsl:param and xsl:variable?
I have template:
<xsl:template name="descript">
<xsl:param name="title"/>
<xsl:variable name="test" select="/root//aaa/bbb"/>
value of var: <xsl:value-of select="$test/@mnemomic"/>
	
value of param: <xsl:value-of
select="$title/@mnemomic"/>
</xsl:template>

when I call this template I set title to exact same
value as variable inside template:
<xsl:call-template name="descript">
<xsl:with-param name="title" select="/root//aaa/bbb"/>
</xsl:call-template>

result is:
value of var: value of mnemonic
value of param: exception here:
weblogic.apache.xpath.XPathException: Can not convert
#RTREEFRAG to a NodeList!

What�s wrong?
Jenya


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com