summaryrefslogtreecommitdiff
path: root/tests/exslt/saxon/eval.1.xsl
blob: ee97a715efa55e22fa5a70e5f3eda18e69884a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:saxon="http://icl.com/saxon"
    exclude-result-prefixes="saxon">

<xsl:output indent="yes"/>

<xsl:template match="expressions">
    <results>
        <xsl:apply-templates select="*"/>
    </results>
</xsl:template>

<xsl:template match="expression">
    <result>
        <xsl:value-of select="saxon:eval(saxon:expression(.))"/>
    </result>
</xsl:template>

</xsl:stylesheet>