[PHP-DOC] cvs: phpdoc /xsl quickref.xsl
techtonik Sun Nov 14 12:34:28 2004 EDT Modified files: /phpdoc/xsl quickref.xsl Log: eternal mess. linefeeds http://cvs.php.net/diff.php/phpdoc/xsl/quickref.xsl?r1=1.1r2=1.2ty=u Index: phpdoc/xsl/quickref.xsl diff -u phpdoc/xsl/quickref.xsl:1.1 phpdoc/xsl/quickref.xsl:1.2 --- phpdoc/xsl/quickref.xsl:1.1 Sat Nov 13 12:49:41 2004 +++ phpdoc/xsl/quickref.xsl Sun Nov 14 12:34:27 2004 @@ -1,30 +1,30 @@ -?xml version=1.0 encoding=iso-8859-1? -!-- - - quickref.xsl: Stylesheet for generating quick-reference - - $Id: quickref.xsl,v 1.1 2004/11/13 17:49:41 techtonik Exp $ - --- -xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; -version=1.0 - -xsl:output method=text/ - -xsl:template match=*/ - -xsl:template match=/ - xsl:apply-templates select=//refnamediv - xsl:sort select=refname/ - /xsl:apply-templates -/xsl:template - -xsl:template match=refnamediv - xsl:value-of select=normalize-space(refname)/ - xsl:text - /xsl:text - xsl:value-of select=normalize-space(refpurpose)/ - xsl:text -/xsl:text -/xsl:template - +?xml version=1.0 encoding=iso-8859-1? +!-- + + quickref.xsl: Stylesheet for generating quick-reference + + $Id: quickref.xsl,v 1.2 2004/11/14 17:34:27 techtonik Exp $ + +-- +xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; +version=1.0 + +xsl:output method=text/ + +xsl:template match=*/ + +xsl:template match=/ + xsl:apply-templates select=//refnamediv + xsl:sort select=refname/ + /xsl:apply-templates +/xsl:template + +xsl:template match=refnamediv + xsl:value-of select=normalize-space(refname)/ + xsl:text - /xsl:text + xsl:value-of select=normalize-space(refpurpose)/ + xsl:text +/xsl:text +/xsl:template + /xsl:stylesheet \ No newline at end of file
[PHP-DOC] cvs: phpdoc /xsl quickref.xsl
techtonik Sun Nov 14 12:36:11 2004 EDT Modified files: /phpdoc/xsl quickref.xsl Log: production release [add] parameter to sort quickreference alphabetically regardless of case http://cvs.php.net/diff.php/phpdoc/xsl/quickref.xsl?r1=1.2r2=1.3ty=u Index: phpdoc/xsl/quickref.xsl diff -u phpdoc/xsl/quickref.xsl:1.2 phpdoc/xsl/quickref.xsl:1.3 --- phpdoc/xsl/quickref.xsl:1.2 Sun Nov 14 12:34:27 2004 +++ phpdoc/xsl/quickref.xsl Sun Nov 14 12:36:11 2004 @@ -3,20 +3,37 @@ quickref.xsl: Stylesheet for generating quick-reference - $Id: quickref.xsl,v 1.2 2004/11/14 17:34:27 techtonik Exp $ + $Id: quickref.xsl,v 1.3 2004/11/14 17:36:11 techtonik Exp $ -- +!DOCTYPE xsl:stylesheet [ + +!ENTITY lowercase 'abcdefghijklmnopqrstuvwxyz' +!ENTITY uppercase 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + +] xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:output method=text/ +xsl:param name=sortbycase select=0/ + xsl:template match=*/ xsl:template match=/ - xsl:apply-templates select=//refnamediv - xsl:sort select=refname/ - /xsl:apply-templates + xsl:choose + xsl:when test=$sortbycase +xsl:apply-templates select=//refnamediv +xsl:sort select=refname/ +/xsl:apply-templates + /xsl:when + xsl:otherwise +xsl:apply-templates select=//refnamediv +xsl:sort select=translate(refname,lowercase;,uppercase;)/ +/xsl:apply-templates + /xsl:otherwise + /xsl:choose /xsl:template xsl:template match=refnamediv
[PHP-DOC] cvs: phpdoc /xsl quickref.xsl
techtonik Sun Nov 14 15:37:31 2004 EDT Modified files: /phpdoc/xsl quickref.xsl Log: function names in reference can't contain spaces fix since refnamediv is used more widely http://cvs.php.net/diff.php/phpdoc/xsl/quickref.xsl?r1=1.3r2=1.4ty=u Index: phpdoc/xsl/quickref.xsl diff -u phpdoc/xsl/quickref.xsl:1.3 phpdoc/xsl/quickref.xsl:1.4 --- phpdoc/xsl/quickref.xsl:1.3 Sun Nov 14 12:36:11 2004 +++ phpdoc/xsl/quickref.xsl Sun Nov 14 15:37:29 2004 @@ -3,7 +3,7 @@ quickref.xsl: Stylesheet for generating quick-reference - $Id: quickref.xsl,v 1.3 2004/11/14 17:36:11 techtonik Exp $ + $Id: quickref.xsl,v 1.4 2004/11/14 20:37:29 techtonik Exp $ -- !DOCTYPE xsl:stylesheet [ @@ -37,11 +37,13 @@ /xsl:template xsl:template match=refnamediv - xsl:value-of select=normalize-space(refname)/ - xsl:text - /xsl:text - xsl:value-of select=normalize-space(refpurpose)/ - xsl:text -/xsl:text + !-- function reference names can't contain spaces -- + xsl:if test=not (contains(normalize-space(refname),' ')) +xsl:value-of select=normalize-space(refname)/ +xsl:text - /xsl:text +xsl:value-of select=normalize-space(refpurpose)/ +xsl:text#10;/xsl:text + /xsl:if /xsl:template /xsl:stylesheet \ No newline at end of file
[PHP-DOC] cvs: phpdoc /xsl quickref.xsl
techtonik Sun Nov 14 17:30:58 2004 EDT Modified files: /phpdoc/xsl quickref.xsl Log: write quick reference for every refname if there are more than one (e.g. mysqli) http://cvs.php.net/diff.php/phpdoc/xsl/quickref.xsl?r1=1.4r2=1.5ty=u Index: phpdoc/xsl/quickref.xsl diff -u phpdoc/xsl/quickref.xsl:1.4 phpdoc/xsl/quickref.xsl:1.5 --- phpdoc/xsl/quickref.xsl:1.4 Sun Nov 14 15:37:29 2004 +++ phpdoc/xsl/quickref.xsl Sun Nov 14 17:30:57 2004 @@ -3,7 +3,7 @@ quickref.xsl: Stylesheet for generating quick-reference - $Id: quickref.xsl,v 1.4 2004/11/14 20:37:29 techtonik Exp $ + $Id: quickref.xsl,v 1.5 2004/11/14 22:30:57 techtonik Exp $ -- !DOCTYPE xsl:stylesheet [ @@ -38,12 +38,12 @@ xsl:template match=refnamediv !-- function reference names can't contain spaces -- - xsl:if test=not (contains(normalize-space(refname),' ')) -xsl:value-of select=normalize-space(refname)/ + xsl:for-each select=refname[not(contains(normalize-space(),' '))] +xsl:value-of select=normalize-space()/ xsl:text - /xsl:text -xsl:value-of select=normalize-space(refpurpose)/ +xsl:value-of select=normalize-space(../refpurpose)/ xsl:text#10;/xsl:text - /xsl:if + /xsl:for-each /xsl:template /xsl:stylesheet \ No newline at end of file