source: branches/samba-3.2.x/docs-xml/xslt/expand-sambadoc.xsl@ 1075

Last change on this file since 1075 was 203, checked in by Herwig Bauernfeind, 17 years ago

Missing 3.2.2 client and HOWTO files

File size: 5.2 KB
RevLine 
[203]1<?xml version='1.0'?>
2<!--
3 Samba-documentation specific stylesheets
4 Published under the GNU GPL
5
6 (C) Jelmer Vernooij 2002-2004
7-->
8<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"
10 xmlns:xlink='http://www.w3.org/1999/xlink'
11 version="1.1">
12
13 <xsl:output method="xml" encoding="UTF-8" doctype-public="-//OASIS//DTD DocBook XML V4.2//EN" indent="yes" doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/>
14
15 <xsl:include href="strip-references.xsl"/>
16 <xsl:include href="expand-smbconfdoc.xsl"/>
17
18 <!-- This is needed to copy content unchanged -->
19 <xsl:template match="@*|node()">
20 <xsl:copy>
21 <xsl:apply-templates select="@*|node()"/>
22 </xsl:copy>
23 </xsl:template>
24
25 <xsl:template name="xsmbconfoption">
26 <xsl:param name="name"/>
27 <xsl:param name="content"/>
28 <xsl:variable name="linkcontent">
29 <xsl:element name="parameter">
30 <xsl:attribute name="moreinfo">
31 <xsl:text>none</xsl:text>
32 </xsl:attribute>
33 <xsl:value-of select="$name"/>
34 </xsl:element>
35
36 <xsl:choose>
37 <xsl:when test="$content != ''">
38 <xsl:text> = </xsl:text>
39 <xsl:value-of select="$content"/>
40 </xsl:when>
41 </xsl:choose>
42 </xsl:variable>
43
44 <xsl:choose>
45 <xsl:when test="$noreference = 1">
46 <xsl:value-of select="$linkcontent"/>
47 </xsl:when>
48 <xsl:otherwise>
49 <xsl:variable name="newid"><xsl:value-of select="translate(translate(string($name),' ',''),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/></xsl:variable>
50 <xsl:element name="link">
51 <xsl:attribute name="linkend">
52 <xsl:value-of select="$newid"/>
53 </xsl:attribute>