diff options
author | Tammy Fox <tfox@redhat.com> | 2003-07-17 19:48:07 +0000 |
---|---|---|
committer | Tammy Fox <tfox@redhat.com> | 2003-07-17 19:48:07 +0000 |
commit | ebd12db1a16fb5a579f9ca2bab90ff7aa0544a27 (patch) | |
tree | 75468484e430de126cf80a7b102880de355f8ec6 /xsl | |
download | fedora-doc-utils-ebd12db1a16fb5a579f9ca2bab90ff7aa0544a27.tar.gz fedora-doc-utils-ebd12db1a16fb5a579f9ca2bab90ff7aa0544a27.tar.xz fedora-doc-utils-ebd12db1a16fb5a579f9ca2bab90ff7aa0544a27.zip |
Initial revision
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/html-common.xsl | 29 | ||||
-rw-r--r-- | xsl/main-html.xsl | 46 | ||||
-rw-r--r-- | xsl/main-pdf.xsl | 22 | ||||
-rw-r--r-- | xsl/redhat.xsl | 57 |
4 files changed, 154 insertions, 0 deletions
diff --git a/xsl/html-common.xsl b/xsl/html-common.xsl new file mode 100644 index 0000000..9d553ae --- /dev/null +++ b/xsl/html-common.xsl @@ -0,0 +1,29 @@ +<!-- created by Tammy Fox tfox@redhat.com for the RHL Project --> +<!-- License: GPL --> +<!-- Copyright 2003 Tammy Fox, Red Hat, Inc. --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + version="1.0" + exclude-result-prefixes="exsl"> + +<!-- Admonition Graphics --> + +<xsl:param name="admon.graphics" select="1"></xsl:param> +<xsl:param name="admon.graphics.path">/stylesheet-images/</xsl:param> + +<!-- titles after all elements --> + +<xsl:param name="formal.title.placement"> +figure after +example after +equation after +table after +procedure after +</xsl:param> + +<xsl:output method="html" indent="no"/> + +<xsl:param name="generate.legalnotice.link" select="1"></xsl:param> + +</xsl:stylesheet> diff --git a/xsl/main-html.xsl b/xsl/main-html.xsl new file mode 100644 index 0000000..588ade2 --- /dev/null +++ b/xsl/main-html.xsl @@ -0,0 +1,46 @@ +<!-- created by Tammy Fox tfox@redhat.com for the RHL Project --> +<!-- License: GPL --> +<!-- Copyright 2003 Tammy Fox, Red Hat, Inc. --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + version="1.0" + exclude-result-prefixes="exsl"> + +<xsl:import href="redhat.xsl"/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk-common.xsl"/> +<xsl:include href="/usr/share/sgml/docbook/xsl-stylesheets/html/manifest.xsl"/> + +<xsl:include href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk-code.xsl"/> + +<xsl:include href="html-common.xsl"/> + +<!-- TOC --> +<xsl:param name="toc.section.depth">3</xsl:param> +<xsl:param name="section.autolabel" select="1"/> +<xsl:param name="section.label.includes.component.label" select="1"></xsl:param> + +<xsl:param name="generate.toc"> +book toc +article toc +chapter nop +sect1 nop +sect2 nop +sect3 nop +sect4 nop +sect5 nop +section nop +</xsl:param> + +<!-- Navigation +<xsl:param name="navig.graphics" select="1"></xsl:param> +<xsl:param name="navig.graphics.extension" select="'.png'"></xsl:param> +<xsl:param name="navig.graphics.path">nav-images/</xsl:param> +<xsl:param name="navig.showtitles">1</xsl:param> +--> + +<!-- multiple pages --> + +<xsl:param name="onechunk" select="0"/> + +</xsl:stylesheet> diff --git a/xsl/main-pdf.xsl b/xsl/main-pdf.xsl new file mode 100644 index 0000000..d72f16d --- /dev/null +++ b/xsl/main-pdf.xsl @@ -0,0 +1,22 @@ +<!-- created by Tammy Fox tfox@redhat.com for the RHL Project --> +<!-- License: GPL --> +<!-- Copyright 2003 Tammy Fox, Red Hat, Inc. --> + +<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"> + +<xsl:import href="redhat.xsl"/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl"/> + +<xsl:param name="use.extensions" select="0"/> +<xsl:param name="tablecolumns.extensions" select="0"/> + +<xsl:param name="generate.toc"> +article toc +</xsl:param> +<xsl:param name="toc.section.depth">3</xsl:param> +<xsl:param name="section.autolabel" select="1"/> + +</xsl:stylesheet> diff --git a/xsl/redhat.xsl b/xsl/redhat.xsl new file mode 100644 index 0000000..d3a7f7c --- /dev/null +++ b/xsl/redhat.xsl @@ -0,0 +1,57 @@ +<!-- created by Tammy Fox tfox@redhat.com for the RHL Project --> +<!-- License: GPL --> +<!-- Copyright 2003 Tammy Fox, Red Hat, Inc. --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + version="1.0" + exclude-result-prefixes="exsl"> + +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl"/> + +<!-- This sets the extension for HTML files to ".html". --> +<!-- (The stylesheet's default for XHTML files is ".xhtm".) --> +<xsl:param name="html.ext" select="'.html'"/> + +<!-- This sets the filename based on the ID. --> +<xsl:param name="use.id.as.filename" select="'1'"/> + +<xsl:template match="command"> + <xsl:call-template name="inline.monoseq"/> +</xsl:template> + +<xsl:template match="application"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guibutton"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guiicon"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guilabel"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guimenu"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guimenuitem"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="guisubmenu"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<xsl:template match="filename"> + <xsl:call-template name="inline.monoseq"/> +</xsl:template> + +</xsl:stylesheet> + + |