|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Multi-part search XPath expressions.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








