|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Multi-part search XPath expressions.
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
|
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








