[yelp-xsl] db2html: Common formatting for example, procedure



commit e8cc83b5ef3eca6b710a5d601660f886e71466e1
Author: Shaun McCance <shaunm gnome org>
Date:   Wed Jan 18 20:09:32 2012 -0500

    db2html: Common formatting for example, procedure

 xslt/common/html.xsl                |    5 +++++
 xslt/docbook/html/db2html-block.xsl |    4 +++-
 xslt/docbook/html/db2html-list.xsl  |    2 ++
 xslt/mallard/html/mal2html-page.xsl |    6 ------
 4 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index f30e820..50c65e0 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -929,6 +929,11 @@ div.code {
   border: solid 1px </xsl:text>
     <xsl:value-of select="$color.gray_border"/><xsl:text>;
 }
+div.example {
+  border-</xsl:text><xsl:value-of select="$left"/><xsl:text>: solid 4px </xsl:text>
+    <xsl:value-of select="$color.gray_border"/><xsl:text>;
+  padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
+}
 div.figure {
   margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
   padding: 4px;
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 6d98ca3..ee63acc 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -471,7 +471,9 @@ syntax highlighting support based on the #{language} attribute of ${node}.
 
 <!-- = informalexample = -->
 <xsl:template match="informalexample | db:informalexample">
-  <xsl:call-template name="db2html.block"/>
+  <xsl:call-template name="db2html.block">
+    <xsl:with-param name="class" select="'example informalexample'"/>
+  </xsl:call-template>
 </xsl:template>
 
 <!-- = literallayout = -->
diff --git a/xslt/docbook/html/db2html-list.xsl b/xslt/docbook/html/db2html-list.xsl
index 57b3648..0d47204 100644
--- a/xslt/docbook/html/db2html-list.xsl
+++ b/xslt/docbook/html/db2html-list.xsl
@@ -246,6 +246,7 @@ REMARK: Describe this module
   <div class="steps">
     <xsl:call-template name="html.lang.attrs"/>
     <xsl:call-template name="db2html.anchor"/>
+    <div class="inner">
     <xsl:apply-templates select="db:info/db:title"/>
     <xsl:apply-templates select="*[not(self::step) and not(self::db:step)]"/>
     <xsl:choose>
@@ -260,6 +261,7 @@ REMARK: Describe this module
         </ol>
       </xsl:otherwise>
     </xsl:choose>
+    </div>
   </div>
 </xsl:template>
 
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 53d81bb..f31a329 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -957,12 +957,6 @@ span.linkdiv-dash { display: none; }
   }
 }
 
-div.example {
-  border-</xsl:text><xsl:value-of select="$left"/><xsl:text>: solid 4px </xsl:text>
-    <xsl:value-of select="$color.gray_border"/><xsl:text>;
-  padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
-}
-
 div.comment {
   padding: 0.5em;
   border: solid 2px </xsl:text>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]