doc/share/xsl/freebsd-common.xsl

43 lines
1.3 KiB
XML
Raw Normal View History

<?xml version='1.0'?>
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="db"
2013-01-23 14:05:57 +01:00
version='1.0'>
<!-- Global customisation -->
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:template match="db:buildtarget|db:command|db:userinput">
2013-05-12 19:37:10 +02:00
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
<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&amp;revision=', $rev)"/>
</xsl:template>
<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"/>
<xsl:param name="generate.index" select="0"/>
<xsl:param name="graphic.default.extension">png</xsl:param>
<!-- 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>
</xsl:stylesheet>