You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2006/05/26 15:45:24 UTC
svn commit: r409669 - in /jakarta/velocity/docbook/trunk/src/styles:
html/custom.xsl pdf/custom.xsl
Author: henning
Date: Fri May 26 06:45:24 2006
New Revision: 409669
URL: http://svn.apache.org/viewvc?rev=409669&view=rev
Log:
Number only chapter and first level of sections.
Modified:
jakarta/velocity/docbook/trunk/src/styles/html/custom.xsl
jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl
Modified: jakarta/velocity/docbook/trunk/src/styles/html/custom.xsl
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/src/styles/html/custom.xsl?rev=409669&r1=409668&r2=409669&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/src/styles/html/custom.xsl (original)
+++ jakarta/velocity/docbook/trunk/src/styles/html/custom.xsl Fri May 26 06:45:24 2006
@@ -30,9 +30,26 @@
<xsl:param name="table.borders.with.css" select="1"/>
<xsl:param name="html.stylesheet">css/stylesheet.css</xsl:param>
<xsl:param name="html.stylesheet.type">text/css</xsl:param>
- <xsl:param name="section.label.includes.component.label" select="1" />
- <xsl:param name="section.autolabel" select="1" />
<xsl:param name="generate.toc">book toc,title</xsl:param>
<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel" select="1"/>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.autolabel.max.depth" select="1"/>
+
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+ <xsl:param name="table.footnote.number.format" select="'1'"/>
+
+<!-- Remove "Chapter" from the Chapter titles... -->
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="en">
+ <l:context name="title-numbered">
+ <l:template name="chapter" text="%n. %t"/>
+ <l:template name="section" text="%n %t"/>
+ </l:context>
+ </l:l10n>
+ </l:i18n>
</xsl:stylesheet>
Modified: jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl?rev=409669&r1=409668&r2=409669&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl (original)
+++ jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl Fri May 26 06:45:24 2006
@@ -31,7 +31,7 @@
<!--###################################################
Header
- ################################################### -->
+ ################################################### -->
<!-- More space in the center header for long text -->
<xsl:attribute-set name="header.content.properties">
@@ -44,7 +44,7 @@
<!--###################################################
Table of Contents
- ################################################### -->
+ ################################################### -->
<xsl:param name="generate.toc">
book toc,title
@@ -52,7 +52,7 @@
<!--###################################################
Custom Footer
- ################################################### -->
+ ################################################### -->
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''"/>
@@ -66,7 +66,7 @@
<xsl:value-of select="//productname"/><xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
- <xsl:text>please define productname in your docbook file!</xsl:text>
+ <xsl:text>please define productname in your docbook file!</xsl:text>
</xsl:otherwise>
</xsl:choose>
@@ -137,11 +137,11 @@
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
- </xsl:template>
-
+ </xsl:template>
+
<!--###################################################
Extensions
- ################################################### -->
+ ################################################### -->
<!-- These extensions are required for table printing and other stuff -->
<xsl:param name="use.extensions">1</xsl:param>
@@ -150,8 +150,8 @@
<!--###################################################
Paper & Page Size
- ################################################### -->
-
+ ################################################### -->
+
<!-- Paper type, no headers on blank pages, no double sided printing -->
<xsl:param name="paper.type" select="'A4'"/>
<xsl:param name="double.sided">0</xsl:param>
@@ -160,7 +160,7 @@
<!--###################################################
Fonts & Styles
- ################################################### -->
+ ################################################### -->
<xsl:param name="hyphenate">false</xsl:param>
@@ -171,32 +171,34 @@
Tables
################################################### -->
- <!-- Some padding inside tables -->
+ <!-- Some padding inside tables -->
<xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">4pt</xsl:attribute>
<xsl:attribute name="padding-right">4pt</xsl:attribute>
<xsl:attribute name="padding-top">4pt</xsl:attribute>
<xsl:attribute name="padding-bottom">4pt</xsl:attribute>
</xsl:attribute-set>
-
+
<!-- Only hairlines as frame and cell borders in tables -->
<xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
<xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
-
+
<!--###################################################
Labels
- ################################################### -->
+ ################################################### -->
<!-- Label Chapters and Sections (numbering) -->
<xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.autolabel.max.depth" select="1"/>
+
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="table.footnote.number.format" select="'1'"/>
<!--###################################################
Programlistings
- ################################################### -->
-
+ ################################################### -->
+
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="space-before.minimum">1em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1em</xsl:attribute>
@@ -207,35 +209,35 @@
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>-->
<xsl:attribute name="border-color">#444444</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
- <xsl:attribute name="border-width">0.1pt</xsl:attribute>
- <xsl:attribute name="padding-top">0.5em</xsl:attribute>
- <xsl:attribute name="padding-left">0.5em</xsl:attribute>
- <xsl:attribute name="padding-right">0.5em</xsl:attribute>
- <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
- <xsl:attribute name="margin-left">0.5em</xsl:attribute>
- <xsl:attribute name="margin-right">0.5em</xsl:attribute>
- </xsl:attribute-set>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ </xsl:attribute-set>
- <!-- Shade (background) programlistings -->
+ <!-- Shade (background) programlistings -->
<xsl:param name="shade.verbatim">1</xsl:param>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
</xsl:attribute-set>
-
+
<!--###################################################
Callouts
- ################################################### -->
+ ################################################### -->
<!-- don't use images for callouts -->
<xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="callout.unicode">1</xsl:param>
-
+
<!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param>
<!--###################################################
Misc
- ################################################### -->
+ ################################################### -->
<!-- Placement of titles -->
<xsl:param name="formal.title.placement">
@@ -245,20 +247,20 @@
table before
procedure before
</xsl:param>
-
- <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
- <xsl:param name="variablelist.as.blocks">1</xsl:param>
-
- <xsl:param name="body.start.indent">0pt</xsl:param>
-
-<!-- Remove "Chapter" from the Chapter titles... -->
- <xsl:param name="local.l10n.xml" select="document('')"/>
- <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
- <l:l10n language="en">
- <l:context name="title-numbered">
- <l:template name="chapter" text="%n. %t"/>
- </l:context>
- </l:l10n>
- </l:i18n>
+ <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
+ <xsl:param name="variablelist.as.blocks">1</xsl:param>
+
+ <xsl:param name="body.start.indent">0pt</xsl:param>
+
+ <!-- Remove "Chapter" from the Chapter titles... -->
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="en">
+ <l:context name="title-numbered">
+ <l:template name="chapter" text="%n. %t"/>
+ <l:template name="section" text="%n %t"/>
+ </l:context>
+ </l:l10n>
+ </l:i18n>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org