From 329a21da994670c8cb2584a77cd9338097e0e8fc Mon Sep 17 00:00:00 2001 From: Mauritz Jeanson Date: Thu, 12 Mar 2009 17:40:15 +0000 Subject: [PATCH] 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. --- xsl/common/titles.xsl | 16 ++++++++++++++ xsl/html/component.xsl | 36 ++++++++++++++++++++++++++++++++ xsl/html/division.xsl | 1 + xsl/html/titlepage.templates.xml | 24 +++++++++++++++++++++ xsl/html/titlepage.xsl | 12 +++++++++++ xsl/html/xref.xsl | 3 ++- 6 files changed, 91 insertions(+), 1 deletion(-) diff --git a/xsl/common/titles.xsl b/xsl/common/titles.xsl index 9495e34ff..4be93ae12 100644 --- a/xsl/common/titles.xsl +++ b/xsl/common/titles.xsl @@ -157,6 +157,22 @@ title of the element. This does not include the label. + + + + + + + + + + + + + + + + diff --git a/xsl/html/component.xsl b/xsl/html/component.xsl index 634f22053..7236d13ee 100644 --- a/xsl/html/component.xsl +++ b/xsl/html/component.xsl @@ -110,6 +110,42 @@ + + + +
+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/division.xsl b/xsl/html/division.xsl index d7b42ddb3..1d2e4c2ca 100644 --- a/xsl/html/division.xsl +++ b/xsl/html/division.xsl @@ -75,6 +75,7 @@ + diff --git a/xsl/html/titlepage.templates.xml b/xsl/html/titlepage.templates.xml index 664dc14e2..926b3c31f 100644 --- a/xsl/html/titlepage.templates.xml +++ b/xsl/html/titlepage.templates.xml @@ -248,6 +248,30 @@ + + + + <subtitle/> + </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="div" class="titlepage"> <t:titlepage-content t:side="recto"> <title/> diff --git a/xsl/html/titlepage.xsl b/xsl/html/titlepage.xsl index 8c344fa2b..16f5c8db4 100644 --- a/xsl/html/titlepage.xsl +++ b/xsl/html/titlepage.xsl @@ -38,6 +38,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"/> @@ -248,6 +251,10 @@ <xsl:template match="authorgroup" mode="titlepage.mode"> <div> + <xsl:if test="parent::refentryinfo"> + <h2>Authors</h2> + </xsl:if> + <xsl:apply-templates select="." mode="class.attribute"/> <xsl:call-template name="anchor"/> <xsl:apply-templates mode="titlepage.mode"/> @@ -354,6 +361,11 @@ </xsl:template> <xsl:template match="copyright" mode="titlepage.mode"> + + <xsl:if test="generate-id() = generate-id(//refentryinfo/copyright[1])"> + <h2>Copyright</h2> + </xsl:if> + <p> <xsl:apply-templates select="." mode="class.attribute"/> <xsl:call-template name="gentext"> diff --git a/xsl/html/xref.xsl b/xsl/html/xref.xsl index 035fc67a0..01ebe3364 100644 --- a/xsl/html/xref.xsl +++ b/xsl/html/xref.xsl @@ -424,7 +424,7 @@ <xsl:apply-templates select="(.//function)[1]" mode="xref"/> </xsl:template> -<xsl:template match="dedication|preface|chapter|appendix|article" mode="xref-to"> +<xsl:template match="dedication|acknowledgements|preface|chapter|appendix|article" mode="xref-to"> <xsl:param name="referrer"/> <xsl:param name="xrefstyle"/> <xsl:param name="verbose" select="1"/> @@ -798,6 +798,7 @@ |ancestor::preface |ancestor::partintro |ancestor::dedication + |ancestor::acknowledgements |ancestor::colophon |ancestor::bibliography |ancestor::index -- 2.50.0