xsl-list
[Top] [All Lists]

AW: if/else xsl ?

2004-07-02 03:05:53
try:

  <xsl:variable name="Color">
    <xsl:choose>
      <xsl:when test="($Zeilenzaehler mod 2 )= 0">
        <xsl:value-of select="$RowDark_bgcolor"/>
      </xsl:when>
      <xsl:when test="($Zeilenzaehler mod 10 )= 0">
        <xsl:value-of select="$RowDarker_bgcolor"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$RowLight_bgcolor"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>


-----Ursprüngliche Nachricht-----
Von: Pierre [mailto:pierre(_at_)web-lance(_dot_)com]
Gesendet: Freitag, 2. Juli 2004 11:58
An: Xsl-List
Betreff: [xsl] if/else xsl ?


Hi guy i search some docs about if - else in xsl but can't fin it 
Any idea plz ?
i have this and I wanna when @desc="pays" do other thing how can I do it ?
thx for help

Pierre 




--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>
  • AW: if/else xsl ?, Jan Kohnert <=