diff options
Diffstat (limited to 'doc/common.xsl')
| -rw-r--r-- | doc/common.xsl | 124 | 
1 files changed, 124 insertions, 0 deletions
| diff --git a/doc/common.xsl b/doc/common.xsl new file mode 100644 index 00000000..94b120af --- /dev/null +++ b/doc/common.xsl @@ -0,0 +1,124 @@ +<!-- +  Inlcuded in xhtml.xsl, xhtml.chunked.xsl, htmlhelp.xsl. +  Contains common XSL stylesheets parameters. +  Output documents styled by docbook.css. +--> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:param name="html.stylesheet" select="'docbook-xsl.css'"/> + +<xsl:param name="htmlhelp.chm" select="'htmlhelp.chm'"/> +<xsl:param name="htmlhelp.hhc.section.depth" select="5"/> + +<xsl:param name="section.autolabel"> +  <xsl:choose> +    <xsl:when test="/processing-instruction('asciidoc-numbered')">1</xsl:when> +    <xsl:otherwise>0</xsl:otherwise> +  </xsl:choose> +</xsl:param> + +<xsl:param name="suppress.navigation" select="0"/> +<xsl:param name="navig.graphics.extension" select="'.png'"/> +<xsl:param name="navig.graphics" select="0"/> +<xsl:param name="navig.graphics.path">images/icons/</xsl:param> +<xsl:param name="navig.showtitles">0</xsl:param> + +<xsl:param name="shade.verbatim" select="0"/> +<xsl:attribute-set name="shade.verbatim.style"> +  <xsl:attribute name="border">0</xsl:attribute> +  <xsl:attribute name="background-color">#E0E0E0</xsl:attribute> +</xsl:attribute-set> + +<xsl:param name="admon.graphics" select="1"/> +<xsl:param name="admon.graphics.path">images/icons/</xsl:param> +<xsl:param name="admon.graphics.extension" select="'.png'"/> +<xsl:param name="admon.style"> +  <xsl:text>margin-left: 0; margin-right: 10%;</xsl:text> +</xsl:param> +<xsl:param name="admon.textlabel" select="1"/> + +<xsl:param name="callout.defaultcolumn" select="'60'"/> +<xsl:param name="callout.graphics.extension" select="'.png'"/> +<xsl:param name="callout.graphics" select="'1'"/> +<xsl:param name="callout.graphics.number.limit" select="'10'"/> +<xsl:param name="callout.graphics.path" select="'images/icons/callouts/'"/> +<xsl:param name="callout.list.table" select="'1'"/> + +<!-- This does not seem to work. --> +<xsl:param name="section.autolabel.max.depth" select="2"/> + +<xsl:param name="chunk.first.sections" select="1"/> +<xsl:param name="chunk.section.depth" select="1"/> +<xsl:param name="chunk.quietly" select="0"/> +<xsl:param name="chunk.toc" select="''"/> +<xsl:param name="chunk.tocs.and.lots" select="0"/> + +<xsl:param name="html.cellpadding" select="'4px'"/> +<xsl:param name="html.cellspacing" select="''"/> + +<xsl:param name="table.borders.with.css" select="1"/> +<xsl:param name="table.cell.border.color" select="'#78079a'"/> +<xsl:param name="table.cell.border.style" select="'solid'"/> +<xsl:param name="table.cell.border.thickness" select="'1px'"/> +<xsl:param name="table.footnote.number.format" select="'a'"/> +<xsl:param name="table.footnote.number.symbols" select="''"/> +<xsl:param name="table.frame.border.color" select="'#78079a'"/> +<xsl:param name="table.frame.border.style" select="'solid'"/> +<xsl:param name="table.frame.border.thickness" select="'1px'"/> +<xsl:param name="tablecolumns.extension" select="'1'"/> + +<xsl:attribute-set name="revhistory.title.properties"> +  <xsl:attribute name="font-size">12pt</xsl:attribute> +  <xsl:attribute name="font-weight">bold</xsl:attribute> +  <xsl:attribute name="text-align">center</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="revhistory.table.properties"> +  <xsl:attribute name="border">0.5pt solid #78079a</xsl:attribute> +  <xsl:attribute name="width">50%</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="revhistory.table.cell.properties"> +  <xsl:attribute name="border">0.5pt solid #78079a</xsl:attribute> +  <xsl:attribute name="font-size">12pt</xsl:attribute> +  <xsl:attribute name="padding">2pt</xsl:attribute> +</xsl:attribute-set> + +<xsl:param name="generate.revhistory.link" select="1"/> + +<xsl:param name="highlight.source" select="1"/> + +<xsl:param name="section.label.includes.component.label" select="1"/> + +<!-- +  Table of contents inserted by <?asciidoc-toc?> processing instruction. +--> +<xsl:param name="generate.toc"> +  <xsl:choose> +    <xsl:when test="/processing-instruction('asciidoc-toc')"> +article toc,title +book    toc,title,figure,table,example,equation +      <!-- The only way I could find that suppressed book chapter TOCs --> +      <xsl:if test="$generate.section.toc.level != 0"> +chapter   toc,title +part      toc,title +preface   toc,title +qandadiv  toc +qandaset  toc +reference toc,title +sect1     toc +sect2     toc +sect3     toc +sect4     toc +sect5     toc +section   toc +set       toc,title +      </xsl:if> +    </xsl:when> +    <xsl:otherwise> +article nop +book    nop +    </xsl:otherwise> +  </xsl:choose> +</xsl:param> + +</xsl:stylesheet> | 
