summaryrefslogtreecommitdiff
path: root/tests/exslt/common/node-set.1.xsl
blob: fe9945dbfb9b5ab77ab84d159d37a2e1dd614390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?> 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:exslt="http://exslt.org/common" >

<!-- Test exslt:node-set applied to a node-set -->

<xsl:variable name="tree">
<a><b><c><d/></c></b></a>
</xsl:variable>

<xsl:template match="/">
  <out>
    <xsl:value-of select="count(exslt:node-set(//*))"/>
  </out>
</xsl:template>
 
</xsl:stylesheet>