|
Subject: [xsl] about xsl:when From: dago@xxxxxxxxxxxxxxxxx Date: Thu, 8 Mar 2001 11:19:04 -0500 |
Hi all,
I try that display the names that have the 'id=1' and 'id=2' in the resutl,
but doesen't work. In the XML file, each 'persona' node have a 'id' with
numeric value. This is the xsl code:
<xsl:template match = "persona[@id]" >
<xsl:choose >
<xsl:when test = ".='1'" > <br/>
edad=<xsl:value-of select="name"/>
</xsl:when>
<xsl:when test = ".='2'" > <br/>
edad=<xsl:value-of select="name"/>
</xsl:when>
<xsl:otherwise > <br/>
<xsl:text >no hay</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Thnanks for you help,
Dago Flores.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] How to pass parameters to, Michael Kay | Thread | Re: [xsl] about xsl:when, David Carlisle |
| [xsl] How to pass parameters to jav, Tomas Hjelmberg | Date | RE: [xsl] XSL and Namespaces, Borca, Olivier |
| Month |