1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <!-- This file is generated from param.xweb; do not edit this file! -->
4 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 xmlns:xlink='http://www.w3.org/
1999/xlink'
6 exclude-result-prefixes=
"xlink"
9 <xsl:param name=
"base.dir" select=
"'../htmldocs/'"/>
10 <xsl:param name=
"bridgehead.in.toc" select=
"1"/>
11 <xsl:param name=
"citerefentry.link" select=
"'1'"/>
12 <xsl:param name=
"css.decoration" select=
"1"/>
13 <xsl:param name=
"html.stylesheet" select=
"'../samba.css'"/>
14 <xsl:param name=
"html.stylesheet.type">text/css
</xsl:param>
15 <xsl:param name=
"use.extensions" select=
"'0'"/>
16 <xsl:param name=
"use.id.as.filename" select=
"'1'"/>
17 <xsl:param name=
"use.local.olink.style" select=
"1"/>
18 <xsl:param name=
"use.role.as.xrefstyle" select=
"1"/>
19 <xsl:param name=
"use.role.for.mediaobject" select=
"1"/>
21 <xsl:template name=
"generate.citerefentry.link">
22 <xsl:value-of select=
"refentrytitle"/><xsl:text>.
</xsl:text><xsl:value-of select=
"manvolnum"/><xsl:text>.html
</xsl:text>
25 <xsl:template match=
"author">
28 <xsl:template match=
"link" name=
"link">
29 <xsl:param name=
"linkend" select=
"@linkend"/>
30 <xsl:param name=
"a.target"/>
31 <xsl:param name=
"xhref" select=
"@xlink:href"/>
33 <xsl:variable name=
"content">
34 <xsl:call-template name=
"anchor"/>
36 <xsl:when test=
"count(child::node()) > 0">
37 <!-- If it has content, use it -->
38 <xsl:apply-templates/>
40 <!-- else look for an endterm -->
41 <xsl:when test=
"@endterm">
42 <xsl:variable name=
"etargets" select=
"key('id',@endterm)"/>
43 <xsl:variable name=
"etarget" select=
"$etargets[1]"/>
45 <xsl:when test=
"count($etarget) = 0">
47 <xsl:value-of select=
"count($etargets)"/>
48 <xsl:text>Endterm points to nonexistent ID:
</xsl:text>
49 <xsl:value-of select=
"@endterm"/>
51 <xsl:text>???
</xsl:text>
54 <xsl:apply-templates select=
"$etarget" mode=
"endterm"/>
60 <xsl:when test=
"key('id', @linkend)/title[1]">
61 <xsl:call-template name=
"gentext.startquote"/>
62 <xsl:value-of select=
"key('id', @linkend)/title[1]"/>
63 <xsl:call-template name=
"gentext.endquote"/>
67 <xsl:text>Link element has no content and no Endterm. And linkend's pointer has no title.
</xsl:text>
68 <xsl:text>Nothing to show in the link to
</xsl:text>
69 <xsl:value-of select=
"(@linkend)[1]"/>
77 <xsl:call-template name=
"simple.xlink">
78 <xsl:with-param name=
"node" select=
"."/>
79 <xsl:with-param name=
"linkend" select=
"$linkend"/>
80 <xsl:with-param name=
"content" select=
"$content"/>
81 <xsl:with-param name=
"a.target" select=
"$a.target"/>
82 <xsl:with-param name=
"xhref" select=
"$xhref"/>