xsl-list
[Top] [All Lists]

Re: Fw: Using a parameter in a condition

2004-02-24 09:17:36
Oops sorry about that - it was late.

Here are the ways I tried to call it:
    <xsl:variable name="stringA">
      <xsl:call-template name="getLocalizedString">
        <xsl:with-param name="key"
select="'String.One'"/>
      </xsl:call-template>
    </xsl:variable>

    <xsl:variable name="stringB">
      <xsl:call-template name="getLocalizedString">
        <xsl:with-param
name="key"><xsl:text>String.One</xsl:text></xsl:with-param>
      </xsl:call-template>
    </xsl:variable>

    <xsl:variable name="stringC">
      <xsl:call-template name="getLocalizedString">
        <xsl:with-param name="key"
select="String.One"/>
      </xsl:call-template>
    </xsl:variable>

Hopefully that completes the picture and thanks for
the poke to include that very important part.

IL

Michael Kay wrote on
2004-02-24 00:58:34:

You are clearly supplying the parameter to the
template incorrectly, but
since you haven't shown us the calling code, it's
hard to tell you
what's wrong with it.

Michael Kay


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



<Prev in Thread] Current Thread [Next in Thread>