summaryrefslogtreecommitdiff
path: root/docs/docbook
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-06-03 22:14:33 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-06-03 22:14:33 +0000
commitb8aec1cdc9c4355cd5216613e735a88743161407 (patch)
tree8577b8a5cfee8459f4ac605a2fc2a92eff4cd539 /docs/docbook
parent9b0f24820c1e53347df7eaf19cb2441e1c0b614c (diff)
downloadsamba-b8aec1cdc9c4355cd5216613e735a88743161407.tar.gz
samba-b8aec1cdc9c4355cd5216613e735a88743161407.tar.bz2
samba-b8aec1cdc9c4355cd5216613e735a88743161407.zip
Add XSL for generating attributions page
(This used to be commit c01e766e14d7db2e3c12f70bcf501c5852ef1dd9)
Diffstat (limited to 'docs/docbook')
-rw-r--r--docs/docbook/xslt/generate-attributions.xsl58
1 files changed, 58 insertions, 0 deletions
diff --git a/docs/docbook/xslt/generate-attributions.xsl b/docs/docbook/xslt/generate-attributions.xsl
new file mode 100644
index 0000000000..e3d6ce25cd
--- /dev/null
+++ b/docs/docbook/xslt/generate-attributions.xsl
@@ -0,0 +1,58 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:samba="http://samba.org/common"
+ version="1.1"
+ extension-element-prefixes="exsl">
+
+<xsl:output method="xml" omit-xml-declaration="yes"/>
+
+<!-- Remove all character data -->
+<xsl:template match="@*|node()">
+ <xsl:apply-templates select="@*|node()"/>
+</xsl:template>
+
+<xsl:template match="book">
+ <xsl:element name="variablelist">
+ <xsl:apply-templates/>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="chapter">
+ <xsl:element name="varlistentry">
+ <xsl:element name="term">
+ <xsl:element name="xref">
+ <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+ </xsl:element>
+ </xsl:element>
+ <xsl:element name="listitem">
+ <xsl:element name="para">
+ <xsl:element name="itemizedlist">
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:element>
+ </xsl:element>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="author">
+ <xsl:element name="listitem">
+ <xsl:element name="para">
+ <xsl:value-of select="firstname"/><xsl:text> </xsl:text><xsl:value-of select="surname"/>
+ <xsl:choose>
+ <xsl:when test="affiliation/address/email != ''">
+ <xsl:text> &lt;</xsl:text>
+ <xsl:element name="ulink">
+ <xsl:attribute name="url">
+ <xsl:value-of select="affiliation/address/email"/>
+ </xsl:attribute>
+ <xsl:value-of select="affiliation/address/email"/>
+ </xsl:element>
+ <xsl:text>&gt;</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:element>
+</xsl:template>
+
+</xsl:stylesheet>