Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Difference between xsl:param and xsl:variable? >Thread Next - Re: Difference between xsl:param and xsl:variable? Re: Difference between xsl:param and xsl:variable?To: NULL Date: 7/4/2004 4:20:00 PM 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
