[Home] [By Thread] [By Date] [Recent Entries]
On Sep 10, 2004, at 8:36 PM, David Adams wrote:
I want to do searches, such as You're going to be surprised how easy it is. Say you do a template match on Species. Your select or test xpath statement is then "Extinct='True' and Genus_Name='Alectura'". So, put it all together and you might have: <xsl:template match="/"> <h1>Birds</h1> <xsl:apply-templates/> </xsl:template> <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>Bruce
|

Cart



