Subject: RE: [xsl] can a value of a parameter depends on a other value From: Roelof Wobben <rwobben@xxxxxxxxxxx> Date: Tue, 29 Nov 2011 17:13:11 +0000 |
Oke, So if the month is in the variable value and the pagenumber in the variable then it would be. <xsl:with-param name="articlesperpage"> <xsl:choose> <xsl:when test=" $value eq 2005-02 and $page eq 1>/xsl:when> </xsl:choose> </xsl:with-param> Roelof ---------------------------------------- > Date: Tue, 29 Nov 2011 18:06:40 +0100 > From: Martin.Honnen@xxxxxx > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] can a value of a parameter depends on a other value > > Roelof Wobben wrote: > > > But I use Symphony CMS and can only use xslt 1.0 > > With XSLT 1.0 you can use > <xsl:with-param name="foo"> > <xsl:choose> > <xsl:when test="condition goes here">value goes here</xsl:when> > <xsl:otherwise>other value goes here</xsl:when> > </xsl:choose> > </xsl:with-param> > > > -- > > Martin Honnen --- MVP Data Platform Development > http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] can a value of a paramete, Martin Honnen | Thread | Re: [xsl] can a value of a paramete, Martin Honnen |
Re: [xsl] can a value of a paramete, Martin Honnen | Date | Re: [xsl] can a value of a paramete, Martin Honnen |
Month |