[yelp-xsl] [db2html-title] Adding DocBook 5 support
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [db2html-title] Adding DocBook 5 support
- Date: Fri, 21 May 2010 23:31:17 +0000 (UTC)
commit 73306e9b72a171a74cdb2fec736df35e3c6777c5
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date: Fri Mar 12 23:18:09 2010 +0000
[db2html-title] Adding DocBook 5 support
Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>
xslt/docbook/html/db2html-title.xsl | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-title.xsl b/xslt/docbook/html/db2html-title.xsl
index 107e9ad..1673b0c 100644
--- a/xslt/docbook/html/db2html-title.xsl
+++ b/xslt/docbook/html/db2html-title.xsl
@@ -17,6 +17,7 @@ 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="http://www.w3.org/1999/xhtml"
version="1.0">
@@ -41,7 +42,7 @@ REMARK: Talk about the different kinds of title blocks
<xsl:template name="db2html.title.block">
<xsl:param name="node" select="."/>
<xsl:param name="referent" select="$node/.."/>
- <xsl:param name="lang" select="$node/@lang"/>
+ <xsl:param name="lang" select="$node/@lang | $node/@xml:lang"/>
<xsl:param name="dir" select="false()"/>
<xsl:variable name="depth_in_chunk">
<xsl:call-template name="db.chunk.depth-in-chunk">
@@ -94,31 +95,31 @@ This template is going away
<!-- = subtitle = -->
<!-- Handled in db2html.title.header -->
-<xsl:template match="subtitle"/>
+<xsl:template match="subtitle | db:subtitle"/>
<!-- = equation/title = -->
-<xsl:template match="equation/title">
+<xsl:template match="equation/title | db:equation/db:title">
<xsl:call-template name="db2html.title.block"/>
</xsl:template>
<!-- = msg/title = -->
-<xsl:template match="msg/title">
+<xsl:template match="msg/title | db:msg/db:title">
<xsl:call-template name="db2html.title.block"/>
</xsl:template>
<!-- = msgrel/title = -->
-<xsl:template match="msgrel/title">
+<xsl:template match="msgrel/title | db:msgrel/db:title">
<xsl:call-template name="db2html.title.block"/>
</xsl:template>
<!-- = msgset/title = -->
-<xsl:template match="msgset/title">
+<xsl:template match="msgset/title | db:msgset/db:title">
<xsl:call-template name="db2html.title.block"/>
</xsl:template>
<!-- = msgsub/title = -->
-<xsl:template match="msgsub/title">
+<xsl:template match="msgsub/title | db:msgsub/db:title">
<xsl:call-template name="db2html.title.block"/>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]