]> granicus.if.org Git - docbook-dsssl/commitdiff
Added a utility stylesheet that gets all of the element names from
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 26 Mar 2006 01:53:10 +0000 (01:53 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 26 Mar 2006 01:53:10 +0000 (01:53 +0000)
a RELAX NG schema (in XML syntax). Needed for recognizing DocBook
element names in commit descriptions and marking them up.

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

diff --git a/xsl/docsrc/get-element-names.xsl b/xsl/docsrc/get-element-names.xsl
new file mode 100644 (file)
index 0000000..7e2056c
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+  <!-- ********************************************************************
+       $Id$
+       ********************************************************************
+
+       This file is part of the XSL DocBook Stylesheet distribution.
+       See ../README or http://docbook.sf.net/release/xsl/current/ for
+       copyright and other information.
+
+       ******************************************************************** -->
+
+  <xsl:param name="docbook.rng"/>
+
+  <xsl:output method="text"/>
+
+  <xsl:template match="/">
+    <!-- * Get the value of the first tagdatetag element in the document -->
+    <!-- * that starts with a "V" (V1691, etc.). That is, hopefully, the -->
+    <!-- * tag for the previous release. -->
+    <xsl:for-each select="//*[local-name() = 'element'][@name]">
+      <xsl:value-of select="@name"/>
+      <xsl:text>&#xa;</xsl:text>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>