s3:lib/events: make use of tevent_common_loop_timer_delay()
[Samba/gebeck_regimport.git] / docs-xml / xslt / smb.conf-html.xsl
blobfe1a1ccf4e65679dee2ffdb64eb6348e23a72229
1 <?xml version='1.0'?>
2 <!--
3 Samba-documentation specific stylesheets
4 Published under the GNU GPLv3 or later
6 (C) Jelmer Vernooij 2005
7 -->
8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:exsl="http://exslt.org/common"
10 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"
11 version="1.1"
12 extension-element-prefixes="exsl">
14 <xsl:import href="html-common.xsl"/>
16 <xsl:output method="xml" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
18 <xsl:template match="samba:parameter">
19 <xsl:element name="html">
20 <xsl:element name="head">
21 <xsl:element name="link">
22 <xsl:attribute name="href"><xsl:text>smb.conf.xsl</xsl:text></xsl:attribute>
23 <xsl:attribute name="rel"><xsl:text>stylesheet</xsl:text></xsl:attribute>
24 <xsl:attribute name="type"><xsl:text>text/css</xsl:text></xsl:attribute>
25 </xsl:element>
27 <xsl:element name="title">
28 <xsl:value-of select="@name"/>
29 </xsl:element>
30 </xsl:element>
31 <xsl:element name="body">
32 <xsl:element name="h1">
33 <xsl:value-of select="@name"/>
34 </xsl:element>
36 <xsl:element name="div">
37 <xsl:attribute name="class"><xsl:text>context</xsl:text></xsl:attribute>
38 <xsl:text>Context: </xsl:text>
39 <xsl:choose>
40 <xsl:when test="@context = 'S'">
41 <xsl:text>Share-specific</xsl:text>
42 </xsl:when>
44 <xsl:when test="@context = 'G'">
45 <xsl:text>Global</xsl:text>
46 </xsl:when>
48 <xsl:otherwise>
49 <xsl:message><xsl:text>Unknown value for context attribute : </xsl:text><xsl:value-of select="@context"/></xsl:message>
50 </xsl:otherwise>
51 </xsl:choose>
53 </xsl:element>
55 <xsl:element name="div">
56 <xsl:attribute name="class"><xsl:text>type</xsl:text></xsl:attribute>
57 <xsl:text>Type: </xsl:text>
58 <xsl:value-of select="@type"/>
59 </xsl:element>
61 <xsl:element name="div">
62 <xsl:attribute name="class"><xsl:text>synonyms</xsl:text></xsl:attribute>
63 <xsl:text>Synonyms: </xsl:text>
64 <xsl:for-each select="synonym">
65 <xsl:text>, </xsl:text>
66 <xsl:value-of select="text()"/>
67 </xsl:for-each>
68 </xsl:element>
70 <xsl:for-each select="value">
71 <xsl:element name="div">
72 <xsl:attribute name="class"><xsl:text>value</xsl:text></xsl:attribute>
73 <xsl:choose>
74 <xsl:when test="@type = 'default'">
75 <xsl:text>Default value</xsl:text>
76 </xsl:when>
77 <xsl:when test="@type = 'example'">
78 <xsl:text>Example value</xsl:text>
79 </xsl:when>
80 </xsl:choose>
82 <xsl:text>: </xsl:text>
84 <xsl:value-of select="text()"/>
86 </xsl:element>
87 </xsl:for-each>
89 <xsl:element name="div">
90 <xsl:attribute name="class"><xsl:text>description</xsl:text></xsl:attribute>
92 <xsl:for-each select="description">
93 <xsl:apply-templates/>
94 </xsl:for-each>
95 </xsl:element>
96 </xsl:element>
97 </xsl:element>
98 </xsl:template>
100 <xsl:template match="description">
101 <xsl:apply-templates/>
102 </xsl:template>
103 </xsl:stylesheet>