|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Using keys in templates
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
|
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








