]> granicus.if.org Git - docbook-dsssl/commitdiff
Added simple general stylesheet from grabbing from a file just the
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 28 Jun 2007 19:23:19 +0000 (19:23 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 28 Jun 2007 19:23:19 +0000 (19:23 +0000)
string value of a specific element.

releasetools/get-element.xsl [new file with mode: 0644]

diff --git a/releasetools/get-element.xsl b/releasetools/get-element.xsl
new file mode 100644 (file)
index 0000000..5345f47
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+  <!-- ********************************************************************
+       $Id: get-param.xsl 6556 2007-01-25 10:25:23Z xmldoc $
+       ******************************************************************** -->
+
+  <xsl:output method="text"/>
+  <xsl:param name="element"/>
+
+  <xsl:template match="/">
+    <xsl:value-of select="//*[local-name() = $element]"/>
+  </xsl:template>
+
+</xsl:stylesheet>