This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: several questions on XML to HTML processing with XSL
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: several questions on XML to HTML processing with XSL
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 9 Jun 2000 15:50:14 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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