cvs: phpdoc /xsl phpweb.xsl phpweb.xsl.in

From: Date: Sat, 19 Apr 2003 17:23:22 +0000
Subject: cvs: phpdoc /xsl phpweb.xsl phpweb.xsl.in
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352701@lists.php.net to get a copy of this message
goba Sat Apr 19 13:23:22 2003 EDT Added files: /phpdoc/xsl phpweb.xsl Removed files: /phpdoc/xsl phpweb.xsl.in Log: Using common parameterization of HTML sheets, so there is no need to have this file to be configure generated Also supress chunking messages Index: phpdoc/xsl/phpweb.xsl +++ phpdoc/xsl/phpweb.xsl <?xml version="1.0" encoding="iso-8859-1"?> <!-- PHP.net web site specific stylesheet $Id: phpweb.xsl,v 1.1 2003/04/19 17:23:22 goba Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="./docbook/html/chunkfast.xsl"/> <xsl:include href="html-common.xsl"/> <!-- Output files to the 'php' dir, use the '.php' extension and name them using the IDs in documents --> <xsl:param name="base.dir" select="'php/'"/> <xsl:param name="html.ext" select="'.php'"/> <xsl:param name="use.id.as.filename" select="1"/> <!-- Speed up generation (no file name printouts) --> <xsl:param name="chunk.quietly">1</xsl:param> <!-- Special PHP code navigation for generated pages Note: I have used xsl:text instead of xsl:processing-instrunction, because the later added > to end the PI, instead of ?> with saxon --> <xsl:template name="header.navigation"> <xsl:param name="prev" select="/foo"/> <xsl:param name="next" select="/foo"/> <xsl:variable name="home" select="/*[1]"/> <xsl:variable name="up" select="parent::*"/> <xsl:text disable-output-escaping="yes">&lt;?php require('shared-manual.inc'); sendManualHeaders('@ENCODING@','@LANG@'); setupNavigation(array( 'home' =&gt; </xsl:text> <xsl:call-template name="phpdoc.nav.array"> <xsl:with-param name="node" select="$home"/> </xsl:call-template> <xsl:text disable-output-escaping="yes">, 'prev' =&gt; </xsl:text> <xsl:call-template name="phpdoc.nav.array"> <xsl:with-param name="node" select="$prev"/> </xsl:call-template> <xsl:text disable-output-escaping="yes">, 'next' =&gt; </xsl:text> <xsl:call-template name="phpdoc.nav.array"> <xsl:with-param name="node" select="$next"/> </xsl:call-template> <xsl:text disable-output-escaping="yes">, 'up' =&gt; </xsl:text> <xsl:call-template name="phpdoc.nav.array"> <xsl:with-param name="node" select="$up"/> </xsl:call-template> <xsl:text disable-output-escaping="yes">, 'toc' =&gt; array(</xsl:text> <xsl:for-each select="../*"> <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable> <xsl:if test="$ischunk='1'"> <xsl:text> </xsl:text> <xsl:call-template name="phpdoc.nav.array"> <xsl:with-param name="node" select="."/> </xsl:call-template> <xsl:text>,</xsl:text> </xsl:if> </xsl:for-each> <xsl:text> ) )); manualHeader('</xsl:text> <xsl:apply-templates select="." mode="phpdoc.object.title"/> <xsl:text>','</xsl:text> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="."/> </xsl:call-template> <xsl:text>');</xsl:text> <xsl:text disable-output-escaping="yes"> ?&gt; </xsl:text> </xsl:template> <xsl:template name="footer.navigation"> <!-- Same as the manualHeader() call above --> <xsl:text disable-output-escaping="yes"> &lt;?php </xsl:text> <xsl:text>manualFooter('</xsl:text> <xsl:apply-templates select="." mode="phpdoc.object.title"/> <xsl:text>','</xsl:text> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="."/> </xsl:call-template> <xsl:text>');</xsl:text> <xsl:text disable-output-escaping="yes"> ?&gt; </xsl:text> </xsl:template> <!-- Eliminate HTML from chunked file contents --> <xsl:template name="chunk-element-content"> <xsl:param name="prev"></xsl:param> <xsl:param name="next"></xsl:param> <xsl:call-template name="header.navigation"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> </xsl:call-template> <xsl:apply-imports/> <xsl:call-template name="footer.navigation"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> </xsl:call-template> </xsl:template> <!-- Prints out one PHP array with page name and title --> <xsl:template name="phpdoc.nav.array"> <xsl:param name="node" select="/foo"/> <xsl:text>array('</xsl:text> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="$node"/> </xsl:call-template> <xsl:text>','</xsl:text> <xsl:apply-templates select="$node" mode="phpdoc.object.title"/> <xsl:text>')</xsl:text> </xsl:template> </xsl:stylesheet>

« previous php.doc (#969352701) next »