[library-web/new-website-style: 8/55] Adapt gtk-doc documents to new style



commit 123d6d140e2c6242a48ce6776c48d0e781ab4a59
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat Dec 4 12:06:28 2010 +0100

    Adapt gtk-doc documents to new style

 data/xslt/gtk-doc.xsl |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/data/xslt/gtk-doc.xsl b/data/xslt/gtk-doc.xsl
index 9e4a8cf..6f36b60 100644
--- a/data/xslt/gtk-doc.xsl
+++ b/data/xslt/gtk-doc.xsl
@@ -92,5 +92,54 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
     <xsl:call-template name="libgo.footer"/>
   </xsl:template>
 
+<!-- overriding the one from docbook-xsl/html/chunk-common.xsl -->
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+  <xsl:param name="nav.context"/>
+  <xsl:param name="content">
+    <xsl:apply-imports/>
+  </xsl:param>
+
+  <xsl:call-template name="user.preroot"/>
+
+  <html>
+    <xsl:call-template name="html.head">
+      <xsl:with-param name="prev" select="$prev"/>
+      <xsl:with-param name="next" select="$next"/>
+    </xsl:call-template>
+
+    <body>
+      <xsl:call-template name="libgo.header" />
+
+      <div id="container">
+
+      <xsl:call-template name="header.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:copy-of select="$content"/>
+
+      <xsl:call-template name="user.footer.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:call-template name="user.footer.navigation"/>
+      </div>
+      <xsl:call-template name="libgo.footer"/>
+    </body>
+  </html>
+  <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+
 
 </xsl:stylesheet>



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