- Reorganize stylesheets for easier customization

This commit is contained in:
Gabor Kovesdan 2013-01-23 13:13:16 +00:00
parent d85fd45626
commit 270c3b26d3
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=40730
5 changed files with 18 additions and 32 deletions

View file

@ -11,6 +11,9 @@
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook/fo/docbook.xsl"/>
<!-- Include the common customizations -->
<xsl:include href="freebsd-common.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:param name="freebsd.output.print"
@ -22,10 +25,6 @@
<xsl:param name="freebsd.output.print.twoside"
select="'0'"/>
<!-- Include the common stylesheets -->
<xsl:include href="freebsd-common.xsl"/>
<!-- FO specific customisation goes here -->
<xsl:param name="use.extensions" select="1"/>

View file

@ -8,9 +8,9 @@
exclude-result-prefixes="#default">
<!-- Pull in the base stylesheets -->
<xsl:import href="freebsd.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:import href="/usr/local/share/xsl/docbook/xhtml/chunk.xsl"/>
<!-- Pull in common XHTML customizations -->
<xsl:include href="freebsd-xhtml-common.xsl"/>
</xsl:stylesheet>

View file

@ -8,7 +8,11 @@
exclude-result-prefixes="#default">
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook/html/docbook.xsl"/>
<!-- XXX hardcoded path. Very bad. Should be turned in to a paramater -->
<xsl:import href="/usr/local/share/xml/docbook/xsl/modular/html/docbook.xsl"/>
<!-- Include the common customizations -->
<xsl:include href="freebsd-common.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:param name="freebsd.output.html" select="'0'"/>
@ -31,5 +35,8 @@
contacting &lt;<a href="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>&gt;.<br/>
For questions about this documentation, e-mail &lt;<a href="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>&gt;.</small></p>
</xsl:template>
</xsl:stylesheet>
<xsl:template match="hostid|username|groupname|devicename|maketarget|makevar">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
</xsl:stylesheet>

View file

@ -8,10 +8,9 @@
exclude-result-prefixes="#default">
<!-- Pull in the base stylesheets -->
<xsl:import href="/usr/local/share/xsl/docbook/html/chunk.xsl"/>
<xsl:import href="/usr/local/share/xsl/docbook/xhtml/docbook.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:include href="freebsd-common.xsl"/>
<!-- Pull in common XHTML customizations -->
<xsl:include href="freebsd-xhtml-common.xsl"/>
</xsl:stylesheet>

View file

@ -1,19 +0,0 @@
<?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">
<!-- Pull in the base stylesheets -->
<!-- XXX hardcoded path. Very bad. Should be turned in to a paramater -->
<xsl:import href="/usr/local/share/xml/docbook/xsl/modular/html/docbook.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
<xsl:template match="hostid|username|groupname|devicename|maketarget|makevar">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
</xsl:stylesheet>