From: Mauritz Jeanson Date: Thu, 12 Mar 2009 17:43:44 +0000 (+0000) Subject: Added code to handle acknowledgements in book and part. The element is processed X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e8133fd8a07c5c714196c04b7f9a1e1fee9e438;p=docbook-dsssl Added code to handle acknowledgements in book and part. The element is processed similarly to dedication. All acknowledgements will appear as front matter, after any dedications. --- diff --git a/xsl/fo/component.xsl b/xsl/fo/component.xsl index 32d4cdd1c..bd0df773e 100644 --- a/xsl/fo/component.xsl +++ b/xsl/fo/component.xsl @@ -209,6 +209,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/division.xsl b/xsl/fo/division.xsl index 4249248cb..88002c60b 100644 --- a/xsl/fo/division.xsl +++ b/xsl/fo/division.xsl @@ -257,6 +257,7 @@ + diff --git a/xsl/fo/pagesetup.xsl b/xsl/fo/pagesetup.xsl index ec9341515..402f0d70b 100644 --- a/xsl/fo/pagesetup.xsl +++ b/xsl/fo/pagesetup.xsl @@ -1764,6 +1764,7 @@ lot front + front front back back diff --git a/xsl/fo/titlepage.templates.xml b/xsl/fo/titlepage.templates.xml index 761422d28..454c87714 100644 --- a/xsl/fo/titlepage.templates.xml +++ b/xsl/fo/titlepage.templates.xml @@ -426,6 +426,37 @@ + + + + + + + <subtitle + font-family="{$title.fontset}"/> + </t:titlepage-content> + + <t:titlepage-content t:side="verso"> + </t:titlepage-content> + + <t:titlepage-separator> + </t:titlepage-separator> + + <t:titlepage-before t:side="recto"> + </t:titlepage-before> + + <t:titlepage-before t:side="verso"> + </t:titlepage-before> +</t:titlepage> + + <!-- ==================================================================== --> <t:titlepage t:element="preface" t:wrapper="fo:block"> diff --git a/xsl/fo/titlepage.xsl b/xsl/fo/titlepage.xsl index 2dcf31889..9e1223cc2 100644 --- a/xsl/fo/titlepage.xsl +++ b/xsl/fo/titlepage.xsl @@ -49,6 +49,9 @@ <xsl:attribute-set name="dedication.titlepage.recto.style"/> <xsl:attribute-set name="dedication.titlepage.verso.style"/> +<xsl:attribute-set name="acknowledgements.titlepage.recto.style"/> +<xsl:attribute-set name="acknowledgements.titlepage.verso.style"/> + <xsl:attribute-set name="preface.titlepage.recto.style"/> <xsl:attribute-set name="preface.titlepage.verso.style"/> diff --git a/xsl/fo/xref.xsl b/xsl/fo/xref.xsl index 746576842..a7a70bb81 100644 --- a/xsl/fo/xref.xsl +++ b/xsl/fo/xref.xsl @@ -396,7 +396,7 @@ <xsl:apply-templates select="(.//function)[1]" mode="xref"/> </xsl:template> -<xsl:template match="dedication|preface|chapter|appendix" mode="xref-to"> +<xsl:template match="dedication|acknowledgements|preface|chapter|appendix" mode="xref-to"> <xsl:param name="referrer"/> <xsl:param name="xrefstyle"/> <xsl:param name="verbose" select="1"/> @@ -764,6 +764,7 @@ |ancestor::preface |ancestor::partintro |ancestor::dedication + |ancestor::acknowledgements |ancestor::colophon |ancestor::bibliography |ancestor::index @@ -1296,6 +1297,7 @@ or local-name($target) = 'equation' or local-name($target) = 'table' or local-name($target) = 'dedication' + or local-name($target) = 'acknowledgements' or local-name($target) = 'preface' or local-name($target) = 'bibliography' or local-name($target) = 'glossary'