svn commit: r39218 - projects/sgml2xml/share/sgml
Gabor Kovesdan
gabor at FreeBSD.org
Mon Jul 16 08:59:35 UTC 2012
Author: gabor
Date: Mon Jul 16 08:59:34 2012
New Revision: 39218
URL: http://svn.freebsd.org/changeset/doc/39218
Log:
- Reorganize xhtml.xsl so that common parts of pages can be reused in
other XSL stylesheets
Approved by: doceng (implicit)
Modified:
projects/sgml2xml/share/sgml/xhtml.xsl
Modified: projects/sgml2xml/share/sgml/xhtml.xsl
==============================================================================
--- projects/sgml2xml/share/sgml/xhtml.xsl Sun Jul 15 19:31:37 2012 (r39217)
+++ projects/sgml2xml/share/sgml/xhtml.xsl Mon Jul 16 08:59:34 2012 (r39218)
@@ -81,6 +81,19 @@ parameters. Changing them will result i
</div> <!-- HEADERCONTAINER -->
<div id="CONTENT">
+ <xsl:call-template name="process.content"/>
+ </div> <!-- CONTENT -->
+
+ <div id="FOOTER">
+ <xsl:call-template name="process.footer"/>
+ </div> <!-- FOOTER -->
+ </div> <!-- CONTAINER -->
+ </div> <!-- CONTAINERWRAP -->
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="process.content">
<div id="SIDEWRAP">
<xsl:choose xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.about'">
@@ -118,25 +131,20 @@ parameters. Changing them will result i
</div> <!-- SIDEWRAP -->
<div id="CONTENTWRAP">
- <xsl:call-template name="process.content"/>
+ <xsl:call-template name="process.contentwrap"/>
</div> <!-- CONTENTWRAP -->
<br class="clearboth" />
- </div> <!-- CONTENT -->
-
- <div id="FOOTER">
- ©right;<br/>
- &lastmod; <xsl:value-of select="$date"/>
- </div> <!-- FOOTER -->
- </div> <!-- CONTAINER -->
- </div> <!-- CONTAINERWRAP -->
- </body>
- </html>
</xsl:template>
- <xsl:template name="process.content">
+ <xsl:template name="process.contentwrap">
<h1><xsl:value-of select="$title" /></h1>
<xsl:copy-of xmlns:xhtml="http://www.w3.org/1999/xhtml" select="xhtml:html/xhtml:body/*" />
</xsl:template>
+
+ <xsl:template name="process.footer">
+ ©right;<br/>
+ &lastmod; <xsl:value-of select="$date"/>
+ </xsl:template>
</xsl:stylesheet>
More information about the svn-doc-projects
mailing list