cvs: phpdoc /xsl phpweb.xsl

From: Date: Sun, 20 Apr 2003 09:08:23 +0000
Subject: cvs: phpdoc /xsl phpweb.xsl
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352731@lists.php.net to get a copy of this message
goba Sun Apr 20 05:08:23 2003 EDT Modified files: /phpdoc/xsl phpweb.xsl Log: Make this XSL sheet work again Index: phpdoc/xsl/phpweb.xsl diff -u phpdoc/xsl/phpweb.xsl:1.1 phpdoc/xsl/phpweb.xsl:1.2 --- phpdoc/xsl/phpweb.xsl:1.1 Sat Apr 19 13:23:22 2003 +++ phpdoc/xsl/phpweb.xsl Sun Apr 20 05:08:23 2003 @@ -3,7 +3,7 @@ PHP.net web site specific stylesheet - $Id: phpweb.xsl,v 1.1 2003/04/19 17:23:22 goba Exp $ + $Id: phpweb.xsl,v 1.2 2003/04/20 09:08:23 goba Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -117,13 +117,16 @@ <xsl:template name="chunk-element-content"> <xsl:param name="prev"></xsl:param> <xsl:param name="next"></xsl:param> + <xsl:param name="content"> + <xsl:apply-templates/> + </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:copy-of select="$content"/> <xsl:call-template name="footer.navigation"> <xsl:with-param name="prev" select="$prev"/> @@ -142,6 +145,15 @@ <xsl:text>','</xsl:text> <xsl:apply-templates select="$node" mode="phpdoc.object.title"/> <xsl:text>')</xsl:text> +</xsl:template> + +<!-- Custom mode for titles for navigation without + "Chapter 1" and other autogenerated content --> +<xsl:template match="*" mode="phpdoc.object.title"> + <xsl:call-template name="substitute-markup"> + <xsl:with-param name="allow-anchors" select="0"/> + <xsl:with-param name="template" select="'%t'"/> + </xsl:call-template> </xsl:template> </xsl:stylesheet>

« previous php.doc (#969352731) next »