Date: Mon, 16 Jul 2012 08:59:34 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-projects@freebsd.org Subject: svn commit: r39218 - projects/sgml2xml/share/sgml Message-ID: <201207160859.q6G8xYBA022574@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207160859.q6G8xYBA022574>