summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl')
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl b/tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl
new file mode 100644
index 0000000..3f39086
--- /dev/null
+++ b/tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:l="http://www.schema.de/XSL/ST4DocuManagerlang" version="1.0">
+ <xsl:template match="/">
+ <xsl:for-each select="/root/bla">
+ <xsl:comment>
+ <xsl:value-of select="@test"/>
+ </xsl:comment>
+ <xsl:call-template name="duplicate">
+ <xsl:with-param name="value" select="@test" />
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="duplicate">
+ <xsl:param name="value" />
+ <xsl:param name="result" />
+ <xsl:choose>
+ <xsl:when test="contains($value, ' ')">
+ <xsl:call-template name="duplicate">
+ <xsl:with-param name="value" select="substring-after($value, ' ')" />
+ <xsl:with-param name="result" select="concat($result,' ', substring-before($value, ' ') * 2)" />
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat($result,' ', $value * 2)" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet> \ No newline at end of file