summaryrefslogtreecommitdiff
path: root/doc/replace-PROG-VERSION.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 /doc/replace-PROG-VERSION.xsl
downloadxmlstarlet-tizen_2.3.1.tar.gz
xmlstarlet-tizen_2.3.1.tar.bz2
xmlstarlet-tizen_2.3.1.zip
Diffstat (limited to 'doc/replace-PROG-VERSION.xsl')
-rw-r--r--doc/replace-PROG-VERSION.xsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/replace-PROG-VERSION.xsl b/doc/replace-PROG-VERSION.xsl
new file mode 100644
index 0000000..bec1279
--- /dev/null
+++ b/doc/replace-PROG-VERSION.xsl
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:db="http://docbook.org/ns/docbook" version="1.0">
+
+ <xsl:param name="VERSION"/>
+ <xsl:template match="db:phrase[@role='VERSION']"><xsl:value-of select="$VERSION"/></xsl:template>
+
+ <xsl:param name="PROG"/>
+ <xsl:template match="db:phrase[@role='PROG']"><xsl:value-of select="$PROG"/></xsl:template>
+
+ <!-- identity transform -->
+ <xsl:template match="node()|@*">
+ <xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>