Subject: [xsl] Using keys in templates From: Nicolas Mailhot <Nicolas.Mailhot@xxxxxxxxxxx> Date: Tue, 13 Jul 2004 16:16:11 +0200 |
Hi all, I'm finding I'm using more and more constructs like : <xsl:key name="dists" match="/release/module/dist" use="@name"/> <xsl:template match="module/dist"> <xsl:variable name="dist" select="@name"/> <xsl:if test="generate-id(.) = generate-id(key('dists',$dist))"> something </xsl:if> </xsl:template> Would it be possible to kill the if using a syntax like : <xsl:template match="module/dist[some test]" priority="1"> </xsl:template> <xsl:template match="module/dist" priority="0"/> -- Nicolas Mailhot
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] self::x:* in XPath 2.0, ben . pickering | Thread | Re: [xsl] Using keys in templates, Jeni Tennison |
Re: [xsl] Saxon 8.0b and NOTATIONs, Jeni Tennison | Date | RE: [xsl] Saxon 8.0b and NOTATIONs, Michael Kay |
Month |