[yelp-xsl] db2html: Update HTML to match new CSS from html.xsl
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] db2html: Update HTML to match new CSS from html.xsl
- Date: Fri, 17 Jun 2011 13:50:04 +0000 (UTC)
commit 6717569d08367493c9a55a65f417d2fc390acdca
Author: Shaun McCance <shaunm gnome org>
Date: Fri Jun 17 09:53:20 2011 -0400
db2html: Update HTML to match new CSS from html.xsl
I added more wrapper divs to support ui expanders in Mallard
xslt/docbook/html/db2html-block.xsl | 18 +++++++++++-------
xslt/docbook/html/db2html-division.xsl | 4 ++++
2 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 5c38456..e488c33 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -103,10 +103,12 @@ formatted with a fixed-width font.
<xsl:with-param name="title" select="$title"/>
</xsl:call-template>
</xsl:if>
- <div class="contents">
- <xsl:apply-templates select="$node/node()[not(set:has-same-node(., $title | $caption))]"/>
+ <div class="region">
+ <div class="contents">
+ <xsl:apply-templates select="$node/node()[not(set:has-same-node(., $title | $caption))]"/>
+ </div>
+ <xsl:apply-templates select="$caption"/>
</div>
- <xsl:apply-templates select="$caption"/>
</div>
</xsl:when>
<xsl:otherwise>
@@ -186,10 +188,12 @@ element.
<div class="inner">
<xsl:apply-templates select="$node/title | $node/db:title |
$node/db:info/db:title"/>
- <blockquote class="{local-name($node)}">
- <xsl:apply-templates select="$node/node()[not(self::title) and not(self::attribution) and not(self::db:title) and not(self::db:attribution)]"/>
- </blockquote>
- <xsl:apply-templates select="$node/attribution | $node/db:attribution"/>
+ <div class="region">
+ <blockquote class="{local-name($node)}">
+ <xsl:apply-templates select="$node/node()[not(self::title) and not(self::attribution) and not(self::db:title) and not(self::db:attribution)]"/>
+ </blockquote>
+ <xsl:apply-templates select="$node/attribution | $node/db:attribution"/>
+ </div>
</div>
</div>
</xsl:template>
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 8f0a44d..c31eb84 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -194,6 +194,7 @@ REMARK: Talk about some of the parameters
<xsl:value-of select="$node/@id"/>
</xsl:attribute>
</xsl:if>
+ <div class="inner">
<xsl:call-template name="db2html.hgroup">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="title_node" select="$title_node"/>
@@ -202,6 +203,7 @@ REMARK: Talk about some of the parameters
<xsl:with-param name="title_content" select="$title_content"/>
<xsl:with-param name="subtitle_content" select="$subtitle_content"/>
</xsl:call-template>
+ <div class="region">
<xsl:choose>
<xsl:when test="$callback">
<xsl:apply-templates mode="db2html.division.div.content.mode" select="$node">
@@ -249,6 +251,8 @@ REMARK: Talk about some of the parameters
</xsl:call-template>
</xsl:if>
</div>
+ </div>
+ </div>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]