summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-07 10:44:02 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:45 -0500
commit96d2ddfeb4b6129776cdeeeee58fe347cfc3637d (patch)
tree03f5b67efdd941561a2bd5dfa39f3ea58a3a22b9 /docs/xslt
parentdabce971b0a08c2a85428b2db29152dce2cb4075 (diff)
downloadsamba-96d2ddfeb4b6129776cdeeeee58fe347cfc3637d.tar.gz
samba-96d2ddfeb4b6129776cdeeeee58fe347cfc3637d.tar.bz2
samba-96d2ddfeb4b6129776cdeeeee58fe347cfc3637d.zip
Remove ignore files
Add missing build files (This used to be commit 5f3b2ba2255a557d3af6624779c34e0b59e0352a)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/genchangelog.xsl42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/xslt/genchangelog.xsl b/docs/xslt/genchangelog.xsl
new file mode 100644
index 0000000000..d7188bfccc
--- /dev/null
+++ b/docs/xslt/genchangelog.xsl
@@ -0,0 +1,42 @@
+<?xml version='1.0'?>
+<!--
+ Generate XML file with out of CVS history using cvs2cl
+ (C) Jelmer Vernooij 2004
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:cvs2cl="http://www.red-bean.com/xmlns/cvs2cl/"
+ exclude-result-prefixes="cvs2cl"
+ version="1.0">
+
+ <xsl:import href="../settings.xsl"/>
+
+ <xsl:output method="xml"/>
+
+ <xsl:template match="cvs2cl:changelog">
+ <xsl:element name="revhistory">
+ <xsl:for-each select="cvs2cl:entry">
+ <xsl:variable name="idx"><xsl:number count="cvs2cl:entry"/></xsl:variable>
+ <xsl:if test="not(number($idx)-number($numclentries) > 0)">
+ <xsl:call-template name="clentry"/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template name="clentry">
+ <xsl:element name="revision">
+ <xsl:element name="revnumber">
+ <xsl:value-of select="cvs2cl:file/cvs2cl:revision"/>
+ </xsl:element>
+ <xsl:element name="date">
+ <xsl:value-of select="cvs2cl:date"/>
+ </xsl:element>
+ <xsl:element name="authorinitials">
+ <xsl:value-of select="cvs2cl:author"/>
+ </xsl:element>
+ <xsl:element name="revremark">
+ <xsl:value-of select="cvs2cl:msg"/>
+ </xsl:element>
+ </xsl:element>
+ </xsl:template>
+</xsl:stylesheet>