[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Param redirection

Subject: Re: Param redirection
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Tue, 1 Aug 2006 00:13:01 +0530
Re:  Param redirection
On 8/1/06, David Nesbitt <dnesbitt@xxxxxxxxxxxxxxxxx> wrote:
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".

I think this will work for you:

 <xsl:when test="$a_or_b = 'a'">
    <xsl:value-of select="$a" />
 <xsl:when test="$a_or_b = 'b'">
    <xsl:value-of select="$b" />

Mukul Gandhi


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.