Add the files which will allow us to actually build with FORMAT=html
STYLESHEET_TYPE=xsl. This is a stepping stone.
This commit is contained in:
parent
5a7e615440
commit
2139c3a789
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15516
4 changed files with 104 additions and 0 deletions
21
share/xsl/freebsd-common.xsl
Normal file
21
share/xsl/freebsd-common.xsl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?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">
|
||||
|
||||
<!-- Global customisation -->
|
||||
|
||||
<!-- 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: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:stylesheet>
|
31
share/xsl/freebsd-fo.xsl
Normal file
31
share/xsl/freebsd-fo.xsl
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?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 -->
|
||||
<xsl:import href="/usr/local/share/xsl/docbook/fo/docbook.xsl"/>
|
||||
|
||||
<!-- Redefine variables, and replace templates as necessary here -->
|
||||
|
||||
<xsl:param name="freebsd.output.print"
|
||||
select="'0'"/>
|
||||
<xsl:param name="freebsd.output.print.pdf"
|
||||
select="'0'"/>
|
||||
<xsl:param name="freebsd.output.print.justify"
|
||||
select="'0'"/>
|
||||
<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:stylesheet>
|
||||
|
17
share/xsl/freebsd-html-chunk.xsl
Normal file
17
share/xsl/freebsd-html-chunk.xsl
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?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 -->
|
||||
<xsl:import href="/usr/local/share/xsl/docbook/html/chunk.xsl"/>
|
||||
|
||||
<!-- Redefine variables, and replace templates as necessary here -->
|
||||
|
||||
<xsl:include href="freebsd-common.xsl"/>
|
||||
</xsl:stylesheet>
|
||||
|
35
share/xsl/freebsd-html.xsl
Normal file
35
share/xsl/freebsd-html.xsl
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?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 -->
|
||||
<xsl:import href="/usr/local/share/xsl/docbook/html/docbook.xsl"/>
|
||||
|
||||
<!-- Redefine variables, and replace templates as necessary here -->
|
||||
<xsl:param name="freebsd.output.html" select="'0'"/>
|
||||
<xsl:param name="freebsd.output.html.images" select="'0'"/>
|
||||
|
||||
<!-- HTML specific customisation goes here -->
|
||||
|
||||
<xsl:param name="html.stylesheet" select="'docbook.css'"/>
|
||||
<xsl:param name="user.id.as.filename" select="'1'"/>
|
||||
<xsl:param name="generate.legalnotice.link" select="'1'"/>
|
||||
<xsl:param name="link.mailto.url" select="'doc@FreeBSD.org'"/>
|
||||
<xsl:param name="callout.graphics.path" select="'./imagelib/callouts/'"/>
|
||||
|
||||
<xsl:template name="user.footer.content">
|
||||
<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:stylesheet>
|
||||
|
Loading…
Reference in a new issue