Project

Profile

Help

Bug #2138 » test2.xsl

Evan Lenz, 2014-09-02 22:41

 
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs">

<xsl:template match="/">
<xsl:for-each select="foo/bar[3]">
<xsl:variable name="type" select="@type"/>
<xsl:number count="bar[@type eq $type]" level="any"/>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

(3-3/3)