cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gergely Imre <gi...@nextra.ro>
Subject Re: If...then
Date Mon, 25 Sep 2000 18:11:23 GMT
How can I check an element's value in an <xsl:choose>...<xsl:when>
clause?

I.e. I have
<unit>10<unit>

and I want to:

<xsl:choose>
<xsl:when test="unit" value="10"> <--- this obviously doesn't work
  The value is 10!
<xsl:when test="unit" value="100">
  The value is 100!
</xsl:choose>

-- 
GImre 
-> ICQ# 86297366

Mime
View raw message