summaryrefslogtreecommitdiff
path: root/tests/exslt/dynamic/dynmap.xsl
blob: bfcef5812b5176ba19fb4ba37e643dbac5d1879d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
 xmlns:dyn="http://exslt.org/dynamic"
 exclude-result-prefixes="dyn"
>
<xsl:output indent="yes"/>

<xsl:template match="/dynmap">
<result>
 <node-set>
  <xsl:copy-of select="dyn:map(*, 'child::*[string-length(.) &gt; 3]')"/>
 </node-set> 
 <boolean>
  <xsl:copy-of select="dyn:map(*, 'string-length(name()) &gt; 3')"/>
 </boolean>
 <number>
  <xsl:copy-of select="dyn:map(*, 'count(*)')"/>
 </number>
 <string>
  <xsl:copy-of select="dyn:map(*, 'name()')"/>
 </string>  
</result> 
</xsl:template>
</xsl:stylesheet>