Karsten Weinert wrote:
Can you please explain to me the difference between a xsl:param and a
xsl:variable? Since I can assign a value to both only once, what's the
point? A small example would help me a lot.
An XSLT processor allows (or should allow) you to pass external
parameters to a transformation for the global <xsl:param> elements you
have in your stylesheet. Check the documentation of your XSLT processor.
And if you have an <xsl:param> element in a named template you can call
that template and pass a parameter in with
<xsl:call-template name="templateName">
<xsl:with-param name="paramName" select="xpathHere" />
</xsl:call-template>
much like in other programming languages you declare a function with
formal parameters and then call it with actual parameters.
A variable is just meant to store some value.
--
Martin Honnen
http://JavaScript.FAQTs.com/