diff xslt/content.xslt @ 608:34b0e74528a5

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 26 Jul 2012 11:37:10 +0000
parents 17cabf13efc8
children 1cd55bc3b236
line wrap: on
line diff
--- a/xslt/content.xslt
+++ b/xslt/content.xslt
@@ -13,6 +13,18 @@
       <xsl:apply-templates/>
    </xsl:template>
 
+   <xsl:template match="section/section[@id and @name]">
+
+      <a name="{@id}"/> 
+      <center>
+         <h5>
+            <xsl:value-of select="@name"/>
+         </h5>
+      </center>
+
+      <xsl:apply-templates/>
+   </xsl:template>
+
    <xsl:template match="section[@id and not(@name)]">
 
       <a name="{@id}"/>
@@ -31,6 +43,17 @@
       <xsl:apply-templates/>
    </xsl:template>
 
+   <xsl:template match="section/section[not(@id) and @name]">
+
+      <center>
+         <h5>
+            <xsl:value-of select="@name"/>
+         </h5>
+      </center>
+
+      <xsl:apply-templates/>
+   </xsl:template>
+
    <xsl:template match="para"> 
       <p>
          <xsl:apply-templates/>