[yelp-xsl] docbook: Get link text right for glossentry
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] docbook: Get link text right for glossentry
- Date: Mon, 20 Jun 2011 00:01:30 +0000 (UTC)
commit df5080e215dc567d4d4bf9a90270c04aca1cb4f0
Author: Shaun McCance <shaunm gnome org>
Date: Sun Jun 19 20:05:12 2011 -0400
docbook: Get link text right for glossentry
xslt/docbook/common/db-title.xsl | 5 +++++
xslt/docbook/common/db-xref.xsl | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/common/db-title.xsl b/xslt/docbook/common/db-title.xsl
index 71a00b0..525f0a1 100644
--- a/xslt/docbook/common/db-title.xsl
+++ b/xslt/docbook/common/db-title.xsl
@@ -227,6 +227,11 @@ REMARK: Describe this mode
</xsl:choose>
</xsl:template>
+<!-- = db.title.mode % glossentry = -->
+<xsl:template mode="db.title.mode" match="glossentry | db:glossentry">
+ <xsl:apply-templates select="glossterm/node() | db:glossterm/node()"/>
+</xsl:template>
+
<!-- = db.title.mode % index = -->
<xsl:template mode="db.title.mode" match="index | db:index">
<xsl:choose>
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl
index 4521071..d26b2a4 100644
--- a/xslt/docbook/common/db-xref.xsl
+++ b/xslt/docbook/common/db-xref.xsl
@@ -185,7 +185,7 @@ REMARK: Document this
<!--#% l10n.format.mode -->
<xsl:template mode="l10n.format.mode" match="msg:glossterm">
<xsl:param name="node"/>
- <xsl:apply-templates select="$node/glossterm | $node/db:glossterm"/>
+ <xsl:apply-templates select="$node/glossterm/node() | $node/db:glossterm/node()"/>
</xsl:template>
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]