|
Subject: Re: [xsl] Multi-part search XPath expressions. From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Fri, 10 Sep 2004 21:04:57 -0400 |
I want to do searches, such as
select species where the Extinct="True" and Genus_Name="Alectura"
The best I've been able to come up with is an expression like the one below:
/Australian_Birds/Species[Extinct!="True"]/self:: Species[Genus_Name="Alectura"]
<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>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Multi-part search XPath expre, David Adams | Thread | Re: [xsl] Multi-part search XPath e, David Adams |
| [xsl] Multi-part search XPath expre, David Adams | Date | Re: [xsl] Multi-part search XPath e, David Adams |
| Month |