summaryrefslogtreecommitdiff
path: root/tests/exslt/dynamic/recursion.xsl
blob: 55bd8dc95234615e717e7661193b2f553d0c7396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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:template match="/doc">
  <result>
    <xsl:apply-templates select="*"/>
  </result>
</xsl:template>

<xsl:template match="eval">
  <xsl:value-of select="dyn:evaluate(.)"/>
</xsl:template>

<xsl:template match="map">
  <xsl:value-of select="dyn:map(., .)"/>
</xsl:template>

</xsl:stylesheet>