Author: manuel
Date: 2007-04-03 10:42:33 -0600 (Tue, 03 Apr 2007)
New Revision: 8007
Modified:
branches/new-xsl/docbook-xsl-snapshot/VERSION
branches/new-xsl/docbook-xsl-snapshot/fo/pagesetup.xsl
Log:
Updated docbook-xsl-snapshot to r6771.
Modified: branches/new-xsl/docbook-xsl-snapshot/VERSION
===================================================================
--- branches/new-xsl/docbook-xsl-snapshot/VERSION 2007-04-03 12:21:48 UTC
(rev 8006)
+++ branches/new-xsl/docbook-xsl-snapshot/VERSION 2007-04-03 16:42:33 UTC
(rev 8007)
@@ -17,7 +17,7 @@
<fm:project>
<fm:Project>DocBook</fm:Project>
<fm:Branch>XSL Stylesheets</fm:Branch>
- <fm:Version>snapshot_6770</fm:Version>
+ <fm:Version>snapshot_6771</fm:Version>
<!--
<fm:License>MIT/X Consortium License</fm:License>
-->
Modified: branches/new-xsl/docbook-xsl-snapshot/fo/pagesetup.xsl
===================================================================
--- branches/new-xsl/docbook-xsl-snapshot/fo/pagesetup.xsl 2007-04-03
12:21:48 UTC (rev 8006)
+++ branches/new-xsl/docbook-xsl-snapshot/fo/pagesetup.xsl 2007-04-03
16:42:33 UTC (rev 8007)
@@ -2277,15 +2277,27 @@
<!-- This template is called after each <fo:flow> starts. -->
<!-- Customize this template to set attributes on fo:flow -->
+ <!-- remove -draft from reference -->
+ <xsl:variable name="pageclass">
+ <xsl:choose>
+ <xsl:when test="contains($master-reference, '-draft')">
+ <xsl:value-of select="substring-before($master-reference, '-draft')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$master-reference"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<xsl:choose>
<xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
<!-- body.start.indent does not work well with these processors -->
</xsl:when>
- <xsl:when test="starts-with($master-reference, 'body') or
- starts-with($master-reference, 'lot') or
- starts-with($master-reference, 'front') or
+ <xsl:when test="starts-with($pageclass, 'body') or
+ starts-with($pageclass, 'lot') or
+ starts-with($pageclass, 'front') or
$element = 'preface' or
- (starts-with($master-reference, 'back') and
+ (starts-with($pageclass, 'back') and
$element = 'appendix')">
<xsl:attribute name="start-indent">
<xsl:value-of select="$body.start.indent"/>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page