134 lines
4.2 KiB
XML
134 lines
4.2 KiB
XML
<?xml version='1.0'?>
|
|
|
|
<!-- $FreeBSD$ -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version='1.0'
|
|
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
|
exclude-result-prefixes="#default">
|
|
|
|
<!-- Include the common customizations -->
|
|
<xsl:include href="freebsd-common.xsl"/>
|
|
|
|
<!-- Include customized XHTML titlepage -->
|
|
<xsl:include href="freebsd-xhtml-titlepage.xsl"/>
|
|
|
|
<!-- Redefine variables, and replace templates as necessary here -->
|
|
|
|
<xsl:param name="use.id.as.filename" select="1"/>
|
|
<xsl:param name="html.stylesheet" select="'docbook.css'"/>
|
|
<xsl:param name="link.mailto.url" select="'doc@FreeBSD.org'"/>
|
|
<xsl:param name="callout.graphics.path" select="'./imagelib/callouts/'"/>
|
|
<xsl:param name="citerefentry.link" select="1"/>
|
|
<xsl:param name="admon.style"/>
|
|
|
|
<xsl:template name="user.footer.navigation">
|
|
<p align="center"><small>This, and other documents, can be downloaded
|
|
from <a href="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a></small></p>
|
|
|
|
<p align="center"><small>For questions about FreeBSD, read the
|
|
<a href="http://www.FreeBSD.org/docs.html">documentation</a> before
|
|
contacting <<a href="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br/>
|
|
For questions about this documentation, e-mail <<a href="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="svnref">
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:text>http://svnweb.freebsd.org/base?view=revision&revision=</xsl:text>
|
|
<xsl:value-of select="."/>
|
|
</xsl:attribute>
|
|
|
|
<span class="svnref">
|
|
<xsl:value-of select="."/>
|
|
</span>
|
|
</a>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="generate.citerefentry.link">
|
|
<xsl:text>http://www.FreeBSD.org/cgi/man.cgi?query=</xsl:text>
|
|
<xsl:value-of select="refentrytitle"/>
|
|
<xsl:text>&amp;sektion=</xsl:text>
|
|
<xsl:value-of select="manvolnum"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="nongraphical.admonition">
|
|
<div>
|
|
<xsl:call-template name="common.html.attributes">
|
|
<xsl:with-param name="inherit" select="1"/>
|
|
</xsl:call-template>
|
|
<xsl:if test="$admon.style">
|
|
<xsl:attribute name="style">
|
|
<xsl:value-of select="$admon.style"/>
|
|
</xsl:attribute>
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$admon.textlabel != 0 or title or info/title">
|
|
<h3 class="admontitle">
|
|
<xsl:call-template name="anchor"/>
|
|
<xsl:apply-templates select="." mode="object.title.markup"/>
|
|
<xsl:text>: </xsl:text>
|
|
</h3>
|
|
</xsl:if>
|
|
|
|
<xsl:apply-templates/>
|
|
</div>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="freebsd.authorgroup">
|
|
<span class="authorgroup">
|
|
|
|
<!-- XXX: our docs use a quirky semantics for this -->
|
|
<xsl:if test="(contrib|author/contrib)[1]">
|
|
<xsl:apply-templates select="(contrib|author/contrib)[1]"/>
|
|
</xsl:if>
|
|
|
|
<xsl:for-each select="author">
|
|
<xsl:apply-templates select="."/>
|
|
|
|
<xsl:choose>
|
|
<xsl:when test="position() < (last() - 1)">
|
|
<xsl:text>, </xsl:text>
|
|
</xsl:when>
|
|
|
|
<xsl:when test="position() = (last() - 1)">
|
|
<xsl:call-template name="gentext.space"/>
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'and'"/>
|
|
</xsl:call-template>
|
|
<xsl:call-template name="gentext.space"/>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
<xsl:text>. </xsl:text>
|
|
</span>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="contrib">
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="freebsd.author">
|
|
<xsl:if test="contrib">
|
|
<xsl:apply-templates select="contrib"/>
|
|
<xsl:text> </xsl:text>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="*[not(self::contrib)]"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="chapter.authorgroup">
|
|
<xsl:call-template name="freebsd.authorgroup"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="section.authorgroup">
|
|
<xsl:call-template name="freebsd.authorgroup"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="chapter.author">
|
|
<xsl:call-template name="freebsd.author"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="section.author">
|
|
<xsl:call-template name="freebsd.author"/>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|