[yelp-xsl] [html.xsl] Added html.body.attr.mode



commit d48d7fb5f03ed5a482d86d50c942d77e67f2189e
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Jun 8 10:16:52 2010 -0500

    [html.xsl] Added html.body.attr.mode

 xslt/common/html.xsl |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 0f4e633..4521521 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -217,6 +217,7 @@ as ${node} to this template.
       <xsl:call-template name="html.head.custom"/>
     </head>
     <body>
+      <xsl:apply-templates mode="html.body.attr.mode" select="$node"/>
       <div class="header">
         <xsl:apply-templates mode="html.header.mode" select="$node"/>
       </div>
@@ -245,6 +246,18 @@ in the #{head}, the output should be text-only.
 
 
 <!--%%==========================================================================
+html.body.attr.mode
+Output attributes for the HTML #{body} element.
+:Revision:version="1.0" date="2010-06-08" status="final"
+
+This mode is called by *{html.page} to output attributes on the HTML #{body}
+element. No attributes are output by default. Importing stylesheets may
+implement this node to add attributes for styling, data, or other purposes.
+-->
+<xsl:template mode="html.body.attr.mode" match="*"/>
+
+
+<!--%%==========================================================================
 html.header.mode
 Output the header content for an element.
 :Revision:version="1.0" date="2010-05-26" status="final"



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