Subject: Re: [xsl] can a value of a parameter depends on a other value From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 01 Dec 2011 16:06:11 +0000 |
Hello,
I did some investigation and found this script.
<xsl:variable name="foo"> <xsl:choose> <xsl:when test="condition1"> ...value if condition1 is true </xsl:when> <xsl:otherwise> ...value if condition1 is not true </xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:apply-templates select="/foo/bar"> <xsl:with-param name="foo" select="$foo"/> </xsl:apply-templates>
Is this a good example of a condtional with-param ?
<xsl:apply-templates select="/foo/bar"> <xsl:with-param name="foo"> <xsl:choose> <xsl:when test="condition1"> ...value if condition1 is true </xsl:when> <xsl:otherwise> ...value if condition1 is not true </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:apply-templates>
-- google plus: https:/profiles.google.com/d.p.carlisle
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] can a value of a paramete, Roelof Wobben | Thread | RE: [xsl] can a value of a paramete, Roelof Wobben |
Re: [xsl] Getting a block to end on, G. Ken Holman | Date | Re: [xsl] Getting a block to end on, Colin DeClue |
Month |