|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: send 'with-param' determined by test
On Mon, 7 May 2001, Tim Watts wrote:
[...]
> I have included the code below.
>
> <xsl:call-template name="date-stripper">
> <xsl:choose>
> <xsl:when test="/document/transient/param[@name = 'from-year']">
> <xsl:with-param name="start-date-year"
> select="/document/transient/param[@name = 'from-year']" />
> </xsl:when>
> <xsl:otherwise>
> <xsl:with-param name="start-date-year"
> select="/document/data/merchant/start-date/@year" />
> </xsl:otherwise>
> </xsl:choose>
You have the ordering wrong. Try:
<xsl:call-template name="date-stripper">
<xsl:with-param name="start-date-year">
<xsl:choose>
<xsl:when test="/document/transient/param[@name = 'from-year']">
<xsl:value-of select="/document/transient/param[@name = 'from-year']" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/data/merchant/start-date/@year" />
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
Greetings, Swen
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








