[yelp-xsl] db2html: Fix cross-reference stuff for glossentry
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] db2html: Fix cross-reference stuff for glossentry
- Date: Wed, 18 May 2011 16:01:46 +0000 (UTC)
commit 196d12e979db564d32ca2c769ec1daab210c5cc7
Author: Shaun McCance <shaunm gnome org>
Date: Tue May 17 10:01:57 2011 -0400
db2html: Fix cross-reference stuff for glossentry
xslt/docbook/common/db-xref.xsl | 9 ++++++++-
xslt/docbook/html/db2html-block.xsl | 2 ++
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl
index 879d604..4521071 100644
--- a/xslt/docbook/common/db-xref.xsl
+++ b/xslt/docbook/common/db-xref.xsl
@@ -19,8 +19,9 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:db="http://docbook.org/ns/docbook"
xmlns:xl="http://www.w3.org/1999/xlink"
+ xmlns:msg="http://projects.gnome.org/yelp/gettext/"
xmlns:set="http://exslt.org/sets"
- exclude-result-prefixes="db xl set"
+ exclude-result-prefixes="db xl msg set"
version="1.0">
<!--!!==========================================================================
@@ -181,4 +182,10 @@ REMARK: Document this
</xsl:call-template>
</xsl:template>
+<!--#% 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:template>
+
</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 5c31c0b..5c38456 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -459,6 +459,8 @@ syntax highlighting support based on the #{language} attribute of ${node}.
<xsl:attribute name="class">
<xsl:text>glossterm</xsl:text>
</xsl:attribute>
+ <xsl:call-template name="html.lang.attrs"/>
+ <xsl:call-template name="db2html.anchor"/>
<xsl:apply-templates select="glossterm | db:glossterm"/>
<xsl:if test="acronym or abbrev or db:acronym or db:abbrev">
<xsl:text> (</xsl:text>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]