Subject: Re: [xsl] select element based on value of one of the children From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Tue, 11 Oct 2005 11:42:12 +0200 |
Either you can select the nodeset like: <xsl:apply-templates select="a[b='7']"/>
<xsl:template match="a"> .. </template>
<xsl:apply-templates select="a"/>
<xsl:template match="a[b='7']"> <!-- This template will overrule the more general one, provided that the predicate is true (that the child element b has a string value of '7') --> .. </xsl:template>
Cheers, Geert
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] select element based on v, Ragulf Pickaxe | Thread | [xsl] resolve html entities, Maximilian Gärber |
Re: [xsl] select element based on v, Ragulf Pickaxe | Date | [xsl] Import stylesheet, Mark Williams |
Month |