[gtk-doc] xsl: work around a missing mode in the xsl template
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] xsl: work around a missing mode in the xsl template
- Date: Mon, 27 Apr 2015 19:44:15 +0000 (UTC)
commit 1a252b0d2d4817d10ec2e92c0256f8a2ad5b036b
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Apr 24 23:39:25 2015 +0200
xsl: work around a missing mode in the xsl template
Fixes #729911
https://bugzilla.gnome.org/show_bug.cgi?id=748456
gtk-doc.xsl | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 714fb7d..9f3f3e1 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -776,6 +776,20 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
</div>
</xsl:template>
+ <!-- a copy from refentry.xsl to add the missing mode attribute,
+ see bug/729911, https://sourceforge.net/p/docbook/bugs/1358/
+ -->
+ <xsl:template match="refpurpose" mode="no.anchor.mode">
+ <xsl:if test="node()">
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="dingbat">
+ <xsl:with-param name="dingbat">em-dash</xsl:with-param>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ <xsl:apply-templates />
+ </xsl:if>
+ </xsl:template>
+
<!-- add anchors for index sections -->
<xsl:template match="indexdiv">
<a><xsl:attribute name="name">idx<xsl:value-of select="./title"/></xsl:attribute></a>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]