|
Subject: Re: [xsl] Multi-part search XPath expressions. From: "Agnes Kielen" <agnes.kielen@xxxxxxx> Date: Sat, 11 Sep 2004 09:42:30 +0200 |
Hi,
Bruce wrote:
>
> <xsl:template match="Species">
> <xsl:choose>
> <xsl:when test="Extinct='False' and Genus_Name='Casuarius'">
> <p>species name is <xsl:value-of select="Species_Name"/></p>
> </xsl:when>
> <xsl:otherwise></xsl:otherwise>
> </xsl:choose>
> </xsl:template>
Why don't you use xsl:if.
<xsl:template match="Species">
<xsl:if test="Extinct='False' and Genus_Name='Casuarius'">
<p>species name is <xsl:value-of select="Species_Name"/></p>
</xsl:if>
</xsl:template>
Regards,
Agnes
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Multi-part search XPath e, David Carlisle | Thread | RE: [xsl] Multi-part search XPath e, Michael Kay |
| Re: [xsl] Namespace problem, George Cristian Bina | Date | RE: [xsl] Using a pre-processor for, Michael Kay |
| Month |