[yelp-xsl] [db2html-table] Generate summaries and titles correctly for DocBook 5
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [db2html-table] Generate summaries and titles correctly for DocBook 5
- Date: Fri, 21 May 2010 23:33:58 +0000 (UTC)
commit b85f120115e0281df51490aafdf949721de1f99c
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date: Mon Apr 5 21:57:48 2010 +0000
[db2html-table] Generate summaries and titles correctly for DocBook 5
Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>
xslt/docbook/html/db2html-table.xsl | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-table.xsl b/xslt/docbook/html/db2html-table.xsl
index caccad2..4ac527a 100644
--- a/xslt/docbook/html/db2html-table.xsl
+++ b/xslt/docbook/html/db2html-table.xsl
@@ -1104,9 +1104,9 @@ REMARK: This template needs to be explained in detail, but I forgot how it works
</xsl:call-template>
</xsl:attribute>
</xsl:if>
- <xsl:if test="../title or ../db:title">
+ <xsl:if test="../title or ../db:title or ../db:info/db:title">
<xsl:attribute name="summary">
- <xsl:value-of select="../title | ../db:title"/>
+ <xsl:value-of select="../title | ../db:title | ../db:info/db:title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$style != ''">
@@ -1188,6 +1188,14 @@ REMARK: This template needs to be explained in detail, but I forgot how it works
</xsl:element>
</xsl:template>
+<!-- = table/info/title = -->
+<xsl:template match="db:table/db:info/db:title">
+ <xsl:call-template name="db2html.block.title">
+ <xsl:with-param name="node" select="../.."/>
+ <xsl:with-param name="title" select="."/>
+ </xsl:call-template>
+</xsl:template>
+
<!-- = table/title = -->
<xsl:template match="table/title | db:table/db:title">
<xsl:call-template name="db2html.block.title">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]