[gtk-doc] xsl: work-around for bug #617478
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] xsl: work-around for bug #617478
- Date: Fri, 11 Jun 2010 09:02:08 +0000 (UTC)
commit 2905a797cd428545dcbbc2ccc45ff63830c695a6
Author: Stefan Kost <ensonic users sf net>
Date: Fri Jun 11 12:01:01 2010 +0300
xsl: work-around for bug #617478
gtk-doc.xsl | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 418eaae..5c90dc2 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -158,7 +158,7 @@
</xsl:choose>
</xsl:template>
- <!-- silently test if a gentext template exists -->
+ <!-- silently test whether a gentext template exists -->
<xsl:template name="gentext.template.exists">
<xsl:param name="context" select="'default'"/>
<xsl:param name="name" select="'default'"/>
@@ -179,7 +179,9 @@
</xsl:template>
<!-- shortcut version -->
- <xsl:template name="generate.html.title">
+ <!-- @bug: https://bugzilla.gnome.org/show_bug.cgi?id=617478 -->
+ <xsl:template name="generate.html.title"/>
+ <!--xsl:template name="generate.html.title">
<xsl:variable name="has.title.markup">
<xsl:apply-templates select="." mode="title.markup">
<xsl:with-param name="verbose" select="0"/>
@@ -195,7 +197,6 @@
<xsl:value-of select="$gentext.title"/>
</xsl:attribute>
</xsl:when>
- <!-- Fall back to alt if available -->
<xsl:when test="alt">
<xsl:attribute name="title">
<xsl:value-of select="normalize-space(alt)"/>
@@ -203,9 +204,9 @@
</xsl:when>
</xsl:choose>
</xsl:if>
- </xsl:template>
+ </xsl:template-->
- <!-- Generate a title attribute for the context node -->
+ <!-- Generate a title attribute for the context node (e.g. links) -->
<xsl:template match="*" mode="html.title.attribute">
<xsl:variable name="has.title.markup">
<xsl:apply-templates select="." mode="title.markup">
@@ -263,7 +264,6 @@
<xsl:value-of select="$gentext.title"/>
</xsl:attribute>
</xsl:when>
- <!-- Fall back to alt if available -->
<xsl:when test="alt">
<xsl:attribute name="title">
<xsl:value-of select="normalize-space(alt)"/>
@@ -272,6 +272,8 @@
</xsl:choose>
</xsl:if>
</xsl:template>
+
+
<!-- ========================================================= -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]