RE: several questions on XML to HTML processing with XSL

Subject: RE: several questions on XML to HTML processing with XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 9 Jun 2000 15:50:14 +0100
> 4. How do I declare a variable parametername?
> 
> I'd like to do the following, but Saxon returns an errormessage on the
> <xsl:with-param> line (invalid $ character).
> 
> <xsl:variable 
> name="ParamName">someXMLtag/@someAttribute</xsl:variable>
> 
> <xsl:call-template name="SomeTemplateName">
>    <xsl:with-param name="$ParamName">whateverValue</xsl:with-param>
> </xsl:call-template>
> 
> How should I do this?

Leave out the "$" sign. It's not part of the parameter's name, it's only
used to identify a variable when used within an XPath expression.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread