|
Subject: Re: [xsl] Param redirection From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Tue, 1 Aug 2006 00:13:01 +0530 |
This is a question about how to program with XSLT.
I would like to have the following parameters in my stylesheet:
<xsl:param name="a_or_b"/> <xsl:param name="a"/> <xsl:param name="b"/>
If the value of param "a_or_b" is "a", I would like to output the value of param "a". If the value of param "a_or_b" is "b", I would like to output the value of param "b".
<xsl:choose>
<xsl:when test="$a_or_b = 'a'">
<xsl:value-of select="$a" />
</xsl:when>
<xsl:when test="$a_or_b = 'b'">
<xsl:value-of select="$b" />
</xsl:when>
</xsl:choose>-- Regards, Mukul Gandhi
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Param redirection, Steve | Thread | RE: [xsl] Param redirection, David Nesbitt |
| Re: [xsl] Param redirection, Steve | Date | [xsl] Param redirection, David Nesbitt |
| Month |