summaryrefslogtreecommitdiff
path: root/examples/xsl/param1.xsl
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
commit4732847654ed74ed893b7ea088805832fd91cc18 (patch)
tree393207d68983c3b587733b83714bef2de2457025 /examples/xsl/param1.xsl
downloadxmlstarlet-4732847654ed74ed893b7ea088805832fd91cc18.tar.gz
xmlstarlet-4732847654ed74ed893b7ea088805832fd91cc18.tar.bz2
xmlstarlet-4732847654ed74ed893b7ea088805832fd91cc18.zip
Diffstat (limited to 'examples/xsl/param1.xsl')
-rw-r--r--examples/xsl/param1.xsl16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/xsl/param1.xsl b/examples/xsl/param1.xsl
new file mode 100644
index 0000000..ab306f6
--- /dev/null
+++ b/examples/xsl/param1.xsl
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output method="text"/>
+<xsl:param name="Text"/>
+<xsl:param name="Count"/>
+<xsl:template match="/">
+ <xsl:call-template name="t1"/>
+</xsl:template>
+<xsl:template name="t1">
+ <xsl:for-each select="/xml">
+ <xsl:value-of select="$Text"/>
+ <xsl:value-of select="$Count"/>
+ <xsl:value-of select="'&#10;'"/>
+ </xsl:for-each>
+</xsl:template>
+</xsl:stylesheet>