summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl
diff options
context:
space:
mode:
authorjiseob.jang <jiseob.jang@samsung.com>2017-09-06 11:40:24 (GMT)
committerjiseob.jang <jiseob.jang@samsung.com>2017-09-07 02:55:42 (GMT)
commitcb9516da9df966079e5a34490139eec68c38dafa (patch)
tree39d5565943e78c35dd013cc771ed2980788fff38 /tests/src/JIT/Regression/JitBlue/DevDiv_461649/Transform.xsl
parent61d6a817e39d3bae0f47dbc09838d51db22a5d30 (diff)
downloadcoreclr-upstream.zip
coreclr-upstream.tar.gz
coreclr-upstream.tar.bz2
Imported Upstream version 2.0.0.12082upstream/2.0.0.12082upstream
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