]> granicus.if.org Git - docbook-dsssl/commitdiff
Move label.from.part parameter into param.xsl; default it to 0 so that chapters and...
authorNorman Walsh <ndw@nwalsh.com>
Tue, 17 Apr 2001 10:34:26 +0000 (10:34 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 17 Apr 2001 10:34:26 +0000 (10:34 +0000)
xsl/common/labels.xsl
xsl/fo/docbook.xsl
xsl/fo/param.xsl
xsl/html/docbook.xsl
xsl/html/param.xsl

index ee59da22fc88a94a5d8af601bb0777afece2a6a2..2fa82865f9fd4be8fa6e5728df8c6066bed73c0b 100644 (file)
@@ -18,8 +18,6 @@ element label.</para>
 </refdescription>
 </doc:mode>
 
-<xsl:param name="label.from.part" select="'1'"/>
-
 <xsl:template match="*" mode="intralabel.punctuation">
   <xsl:text>.</xsl:text>
 </xsl:template>
index 115e5ad7bfc76f28ab8f978577c31a80a4ce994b..a4355f8ba08d8272104bc87a97d614453034dfeb 100644 (file)
@@ -21,6 +21,7 @@
 <!-- ==================================================================== -->
 
 <xsl:include href="../VERSION"/>
+<xsl:include href="param.xsl"/>
 <xsl:include href="../lib/lib.xsl"/>
 <xsl:include href="../common/l10n.xsl"/>
 <xsl:include href="../common/common.xsl"/>
@@ -28,7 +29,6 @@
 <xsl:include href="../common/titles.xsl"/>
 <xsl:include href="../common/subtitles.xsl"/>
 <xsl:include href="../common/gentext.xsl"/>
-<xsl:include href="param.xsl"/>
 <xsl:include href="autotoc.xsl"/>
 <xsl:include href="lists.xsl"/>
 <xsl:include href="callout.xsl"/>
index ce259f5492a5917357e3533d15e72bf7be72210b..8ae2928a59dd95d5cffd7ebb18b5ec666efa794a 100644 (file)
@@ -1119,5 +1119,20 @@ units. Unqualified dimensions are not allowed in XSL Formatting Objects.
 
 <xsl:param name="generate.index" select="1" doc:type='boolean'/>
 
+<!-- ==================================================================== -->
+<xsl:param name="label.from.part" select="'0'" doc:type='boolean'/>
+
+<doc:param name="label.from.part" xmlns="">
+<refpurpose>Renumber chapters in each part?</refpurpose>
+<refdescription>
+<para>If <parameter>label.from.part</parameter> is non-zero, components
+(<sgmltag>chapter</sgmltag>s, <sgmltag>appendixe</sgmltag>s, etc.)
+will be numbered from 1 in each <sgmltag>part</sgmltag>. Otherwise,
+they will be numbered monotonically throughout each
+<sgmltag>book</sgmltag>.
+</para>
+</refdescription>
+</doc:param>
+
 </xsl:stylesheet>
 
index 9584683540d48c18f67b47872859601022418577..1cf529748d7345a41420b17bf6359ab33315e1b2 100644 (file)
@@ -21,6 +21,7 @@
 <!-- ==================================================================== -->
 
 <xsl:include href="../VERSION"/>
+<xsl:include href="param.xsl"/>
 <xsl:include href="../lib/lib.xsl"/>
 <xsl:include href="../common/l10n.xsl"/>
 <xsl:include href="../common/common.xsl"/>
@@ -28,7 +29,6 @@
 <xsl:include href="../common/titles.xsl"/>
 <xsl:include href="../common/subtitles.xsl"/>
 <xsl:include href="../common/gentext.xsl"/>
-<xsl:include href="param.xsl"/>
 <xsl:include href="autotoc.xsl"/>
 <xsl:include href="lists.xsl"/>
 <xsl:include href="callout.xsl"/>
index eaea98a277fb33285ad647951a8471e90de4cb52..06a6c1cae9615c17b5a13400f8cdbc4baaa7db51 100644 (file)
@@ -1082,4 +1082,19 @@ will be used.
 </refdescription>
 </doc:param>
 
+<!-- ==================================================================== -->
+<xsl:param name="label.from.part" select="'0'" doc:type='boolean'/>
+
+<doc:param name="label.from.part" xmlns="">
+<refpurpose>Renumber chapters in each part?</refpurpose>
+<refdescription>
+<para>If <parameter>label.from.part</parameter> is non-zero, components
+(<sgmltag>chapter</sgmltag>s, <sgmltag>appendixe</sgmltag>s, etc.)
+will be numbered from 1 in each <sgmltag>part</sgmltag>. Otherwise,
+they will be numbered monotonically throughout each
+<sgmltag>book</sgmltag>.
+</para>
+</refdescription>
+</doc:param>
+
 </xsl:stylesheet>