2003-01-03 06:06:14 +01:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
|
|
|
|
<!-- $FreeBSD$ -->
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2013-06-30 11:58:03 +02:00
|
|
|
xmlns:db="http://docbook.org/ns/docbook"
|
2013-07-21 13:18:51 +02:00
|
|
|
xmlns:str="http://exslt.org/strings"
|
|
|
|
extension-element-prefixes="str"
|
2013-06-30 11:58:03 +02:00
|
|
|
exclude-result-prefixes="db"
|
2013-01-23 14:05:57 +01:00
|
|
|
version='1.0'>
|
2012-08-21 21:16:02 +02:00
|
|
|
|
2003-01-03 06:06:14 +01:00
|
|
|
<!-- Global customisation -->
|
|
|
|
|
2014-08-17 20:53:58 +02:00
|
|
|
<!-- Generate link for revnumber -->
|
|
|
|
<xsl:template match="db:revnumber">
|
|
|
|
<xsl:call-template name="svnref.genlink"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2003-01-03 06:06:14 +01:00
|
|
|
<!-- Redefine variables, and replace templates as necessary here -->
|
2013-07-24 21:11:16 +02:00
|
|
|
<xsl:template match="db:buildtarget|db:command">
|
2013-05-12 19:37:10 +02:00
|
|
|
<xsl:call-template name="inline.monoseq"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2013-04-05 15:11:11 +02:00
|
|
|
<xsl:template name="svnweb.link">
|
|
|
|
<xsl:param name="repo" select="'base'"/>
|
|
|
|
<xsl:param name="rev"/>
|
|
|
|
|
|
|
|
<xsl:value-of select="concat('http://svnweb.freebsd.org/', $repo,
|
|
|
|
'?view=revision&revision=', $rev)"/>
|
|
|
|
</xsl:template>
|
2013-01-31 11:30:41 +01:00
|
|
|
|
2003-01-03 06:06:14 +01:00
|
|
|
<xsl:param name="toc.section.depth" select="1"/>
|
|
|
|
<xsl:param name="section.autolabel" select="1"/>
|
|
|
|
<xsl:param name="section.label.includes.component.label" select="1"/>
|
|
|
|
|
2013-04-01 10:16:09 +02:00
|
|
|
<xsl:param name="graphic.default.extension">png</xsl:param>
|
2013-07-15 15:15:06 +02:00
|
|
|
|
|
|
|
<!-- No links in TOC -->
|
|
|
|
<xsl:template match="db:citerefentry" mode="no.anchor.mode">
|
|
|
|
<xsl:apply-templates select="*" mode="no.anchor.mode"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- No links in TOC -->
|
|
|
|
<xsl:template match="db:refentrytitle" mode="no.anchor.mode">
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</xsl:template>
|
2013-07-21 13:18:51 +02:00
|
|
|
|
|
|
|
<xsl:template match="db:contrib">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="titlepage.pubdate">
|
|
|
|
<xsl:variable name="pubdate">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains(., '$FreeBSD')">
|
|
|
|
<xsl:value-of select="str:split(., ' ')[4]"/>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
<xsl:variable name="committer">
|
|
|
|
<xsl:if test="contains(., '$FreeBSD')">
|
|
|
|
<xsl:value-of select="str:split(., ' ')[6]"/>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
<xsl:call-template name="gentext">
|
|
|
|
<xsl:with-param name="key" select="'Lastmodified'"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:call-template name="gentext.space"/>
|
|
|
|
<xsl:call-template name="gentext">
|
|
|
|
<xsl:with-param name="key" select="'on'"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:call-template name="gentext.space"/>
|
|
|
|
<xsl:value-of select="$pubdate"/>
|
|
|
|
<xsl:if test="$committer">
|
|
|
|
<xsl:call-template name="gentext.space"/>
|
|
|
|
<xsl:call-template name="gentext">
|
|
|
|
<xsl:with-param name="key" select="'by'"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:call-template name="gentext.space"/>
|
|
|
|
<xsl:value-of select="$committer"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>.</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="svnref.genlink"/>
|
|
|
|
|
|
|
|
<xsl:template name="titlepage.releaseinfo">
|
|
|
|
<xsl:variable name="rev" select="str:split(., ' ')[3]"/>
|
|
|
|
|
|
|
|
<xsl:call-template name="gentext">
|
|
|
|
<xsl:with-param name="key" select="'Revision'"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:text>:</xsl:text>
|
|
|
|
<xsl:call-template name="gentext.space"/>
|
|
|
|
<xsl:call-template name="svnref.genlink">
|
|
|
|
<xsl:with-param name="repo" select="'doc'"/>
|
|
|
|
<xsl:with-param name="rev" select="$rev"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="freebsd.authorgroup">
|
|
|
|
<!-- XXX: our docs use a quirky semantics for this -->
|
|
|
|
<xsl:if test="(db:contrib|db:author/db:contrib)[1]">
|
|
|
|
<xsl:apply-templates select="(db:contrib|db:author/db:contrib)[1]"/>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:for-each select="db: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>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="db:contrib">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="freebsd.author">
|
|
|
|
<xsl:if test="contrib">
|
|
|
|
<xsl:apply-templates select="db:contrib"/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:apply-templates select="*[not(self::db:contrib)]"/>
|
|
|
|
</xsl:template>
|
2013-08-13 10:28:25 +02:00
|
|
|
|
2013-07-28 18:50:21 +02:00
|
|
|
<xsl:param name="callout.graphics.number.limit">30</xsl:param>
|
2003-01-03 06:06:14 +01:00
|
|
|
</xsl:stylesheet>
|