Skip to content
Snippets Groups Projects
Commit 86ed8ac0e996 authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

Test recursion in EXSLT dynamic functions

parent 18832b6411b0
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,13 @@
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
dynmap.out dynmap.xml dynmap.xsl
dynmap.out \
dynmap.xml \
dynmap.xsl \
recursion.err \
recursion.out \
recursion.xml \
recursion.xsl
CLEANFILES = .memdump
......
XPath error : Recursion limit exceeded
dyn:evaluate(.)
^
dyn:evaluate() : unable to evaluate expression 'dyn:evaluate(.)'
XPath error : Recursion limit exceeded
dyn:map(., .)
^
<?xml version="1.0"?>
<result/>
<doc>
<eval>dyn:evaluate(.)</eval>
<map>dyn:map(., .)</map>
</doc>
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment