cvs: phpdoc / html-common.xsl

From: Date: Mon, 12 Mar 2001 13:58:26 +0000
Subject: cvs: phpdoc / html-common.xsl
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334648@lists.php.net to get a copy of this message
jkj Mon Mar 12 05:58:26 2001 EDT Modified files: /phpdoc html-common.xsl Log: - version infromation is now included in function reference Index: phpdoc/html-common.xsl diff -u phpdoc/html-common.xsl:1.1 phpdoc/html-common.xsl:1.2 --- phpdoc/html-common.xsl:1.1 Sun Feb 11 13:51:24 2001 +++ phpdoc/html-common.xsl Mon Mar 12 05:58:25 2001 @@ -2,7 +2,7 @@ Common HTML customizations - $Id: html-common.xsl,v 1.1 2001/02/11 21:51:24 jkj Exp $ + $Id: html-common.xsl,v 1.2 2001/03/12 13:58:25 jkj Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -12,6 +12,9 @@ <xsl:param name="funcsynopsis.decoration">1</xsl:param> <xsl:param name="refentry.generate.name">0</xsl:param> +<!-- Load version information into variable --> +<xsl:param name="version" select="document('version.xml')/versions"/> + <!-- We do not want semicolon at the end of prototype --> <xsl:template match="paramdef"> <xsl:variable name="paramnum"> @@ -86,5 +89,11 @@ <!-- Title abbreviations are not used in HTML output AFAIK --> <xsl:template match="titleabbrev"/> + +<!-- Add version information bellow function name --> +<xsl:template match="refnamediv"> + <p>(<xsl:value-of select="$version/function[@name=string(current()/refname)]/@from"/>)</p> + <xsl:apply-imports/> +</xsl:template> </xsl:stylesheet>

« previous php.doc (#969334648) next »