]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for using <section> instead of <div> for html5.
authorBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:44:25 +0000 (23:44 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:44:25 +0000 (23:44 +0000)
xsl/html/division.xsl

index 4c0fbc7ffec7c6a4344da86b61335614c18cf13e..daa95846556882293628753eca924fd89f6f0d36 100644 (file)
@@ -17,7 +17,7 @@
 <xsl:template match="set">
   <xsl:call-template name="id.warning"/>
 
-  <div>
+  <xsl:element name="{$div.element}">
     <xsl:apply-templates select="." mode="common.html.attributes"/>
     <xsl:call-template name="id.attribute">
       <xsl:with-param name="conditional" select="0"/>
@@ -50,7 +50,7 @@
     </xsl:call-template>
 
     <xsl:apply-templates/>
-  </div>
+  </xsl:element>
 </xsl:template>
 
 <xsl:template match="set/setinfo"></xsl:template>