This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: several questions on XML to HTML processing with XSL


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]