cvs: php-gtk /docs/stylesheets/xsl chunk.xsl.in html.xsl.in phpweb.xsl.in /docs/stylesheets/xsl/html class.xsl overrides.xsl phpweb.xsl
| From: | James Moore | Date: | Thu, 10 May 2001 21:54:33 +0000 |
| Subject: | cvs: php-gtk /docs/stylesheets/xsl chunk.xsl.in html.xsl.in phpweb.xsl.in /docs/stylesheets/xsl/html class.xsl overrides.xsl phpweb.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1797@lists.php.net to get a copy of this message | ||
jmoore Thu May 10 14:54:33 2001 EDT
Modified files:
/php-gtk/docs/stylesheets/xsl chunk.xsl.in html.xsl.in
phpweb.xsl.in
/php-gtk/docs/stylesheets/xsl/html class.xsl overrides.xsl
phpweb.xsl
Log:
Various changes for phpweb stylesheets, some more modifications needed but these are the beginings
Index: php-gtk/docs/stylesheets/xsl/chunk.xsl.in diff -u php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.4 php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.5 --- php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.4 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/chunk.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: chunk.xsl.in,v 1.4 2001/05/04 19:30:51 jmoore Exp $ + $Id: chunk.xsl.in,v 1.5 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -30,5 +30,5 @@ <xsl:param name="base.dir" select="'build/html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> - +<xsl:param name="phpweb" select="0"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in diff -u php-gtk/docs/stylesheets/xsl/html.xsl.in:1.5 php-gtk/docs/stylesheets/xsl/html.xsl.in:1.6 --- php-gtk/docs/stylesheets/xsl/html.xsl.in:1.5 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/html.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: html.xsl.in,v 1.5 2001/05/04 19:30:51 jmoore Exp $ + $Id: html.xsl.in,v 1.6 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -30,5 +30,6 @@ <xsl:param name="base.dir" select="'build/html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> +<xsl:param name="phpweb" select="0"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/phpweb.xsl.in diff -u php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.2 php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.3 --- php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.2 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/phpweb.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: phpweb.xsl.in,v 1.2 2001/05/04 19:30:51 jmoore Exp $ + $Id: phpweb.xsl.in,v 1.3 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -31,5 +31,5 @@ <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> <xsl:param name="html.ext" select="'.php'" /> - +<xsl:param name="phpweb" select="1"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.38 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.39 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.38 Wed May 9 13:44:38 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Thu May 10 14:54:33 2001 @@ -92,8 +92,24 @@ <!--========================================================================--> <xsl:template match="function|constructor"> + <xsl:call-template name="func.proto"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="append.bracket" select="0"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="function" mode="synoptic.mode"> + <xsl:call-template name="func.proto"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="append.bracket" select="1"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="func.proto"> + <xsl:param name="append.bracket" select="0" /> + <xsl:param name="node" select="." /> <xsl:variable name="funcname"> - <xsl:value-of select="."/> + <xsl:value-of select="$node"/> </xsl:variable> <xsl:variable name="id"> @@ -115,7 +131,10 @@ <xsl:attribute name="href"> <xsl:value-of select="$link" /> </xsl:attribute> - <xsl:value-of select="." /> + <xsl:value-of select="$node" /> + <xsl:if test="$append.bracket=1"> + <xsl:text>() </xsl:text> + </xsl:if> </a> </xsl:when> <xsl:otherwise> @@ -174,31 +193,38 @@ <xsl:apply-templates select="./classmeta/classtitle"/> </h1> <p> - <xsl:apply-templates select="./classmeta/shortdesc"/> + <blockquote> + <xsl:apply-templates select="./classmeta/shortdesc"/> + </blockquote> </p> <p> <h3> Object Hierarchy </h3> + <blockquote> <div class="literallayout"> <xsl:call-template name="get_class_hierarchy"> <xsl:with-param name="classname"> <xsl:value-of select="./classmeta/classtitle"/> </xsl:with-param> </xsl:call-template> - <br /> </div> + </blockquote> </p> <p> <h3>Object Properties and Methods</h3> + <blockquote> <xsl:apply-templates select="./constructor" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> <xsl:apply-templates select="./signals" mode="synoptic.mode"/> + </blockquote> </p> <p> <h3>Description</h3> - <xsl:apply-templates select="./classmeta/desc"/> + <blockquote> + <xsl:apply-templates select="./classmeta/desc"/> + </blockquote> </p> </div> <xsl:apply-templates select="./methods|./signals|./atrributes|./constructor"/> @@ -210,31 +236,35 @@ <xsl:value-of select="@id"/> </xsl:attribute> <h4>Constructor</h4> - <p> - <xsl:apply-templates select="./funcsynopsis"/> - <xsl:text> —</xsl:text> - <xsl:apply-templates select="./shortdesc" /> - </p> + <blockquote> + <xsl:apply-templates select="./funcsynopsis"/> + <xsl:text> —</xsl:text> + <xsl:apply-templates select="./shortdesc" /> + </blockquote> </div> </xsl:template> <xsl:template match="methods" mode="synoptic.mode"> + <div> <h4>Methods</h4> - <p> + <blockquote> <xsl:apply-templates select="./method" mode="synoptic.mode"/> - </p> + </blockquote> + </div> </xsl:template> <xsl:template match="method" mode="synoptic.mode"> - <xsl:apply-templates select="./funcsynopsis/funcprototype/funcdef/function"/> - <xsl:text>() —</xsl:text> + <code><xsl:apply-templates select="./funcsynopsis/funcprototype/funcdef/function" mode="synoptic.mode"/></code> + <xsl:text>—</xsl:text> <xsl:apply-templates select="./shortdesc" /> <br /> </xsl:template> <xsl:template match="attributes" mode="synoptic.mode"> <h4>Attributes</h4> + <blockquote> <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> + </blockquote> </xsl:template> <xsl:template match="attribute" mode="synoptic.mode"> @@ -243,7 +273,9 @@ <xsl:template match="signals" mode="synoptic.mode"> <h4>Signals</h4> + <blockquote> <xsl:apply-templates select="./signal" mode="synoptic.mode"/> + </blockquote> </xsl:template> <xsl:template match="signal" mode="synoptic.mode"> @@ -253,13 +285,14 @@ </xsl:template> <xsl:template match="funcsynopsis" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> + <code> + <xsl:apply-templates mode="synoptic.mode"/> + </code> </xsl:template> <xsl:template match="funcprototype" mode="synoptic.mode"> - <code> - <xsl:apply-templates mode="func.prototype"/> - </code> + <xsl:apply-templates mode="synoptic.mode"/> + </xsl:template> Index: php-gtk/docs/stylesheets/xsl/html/overrides.xsl diff -u php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.5 php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.6 --- php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.5 Fri May 4 15:52:07 2001 +++ php-gtk/docs/stylesheets/xsl/html/overrides.xsl Thu May 10 14:54:33 2001 @@ -5,14 +5,12 @@ <xsl:template match="funcprototype"> <p> - <code> <xsl:apply-templates mode="func.prototype"/> - </code> </p> </xsl:template> <xsl:template match="funcdef" mode="func.prototype"> - <code class="{name(.)}"> + <code> <xsl:apply-templates/> </code> </xsl:template> Index: php-gtk/docs/stylesheets/xsl/html/phpweb.xsl diff -u php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.3 php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.4 --- php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.3 Wed May 9 12:59:58 2001 +++ php-gtk/docs/stylesheets/xsl/html/phpweb.xsl Thu May 10 14:54:33 2001 @@ -1,3 +1,8 @@ +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!DOCTYPE xsl:stylesheet [ +<!ENTITY step "      "> +<!ENTITY nbsp " "> +]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" @@ -234,6 +239,141 @@ <xsl:with-param name="next" select="$next"/> <xsl:with-param name="up" select="$up"/> </xsl:call-template> +</xsl:template> + + +<xsl:template name="get_class_hierarchy"> + <xsl:param name="classname" /> + + <xsl:variable name="depth"> + <xsl:call-template name="current-depth"> + <xsl:with-param name="classname" select="$classname" /> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="id"> + <xsl:call-template name="get_id_from_name"> + <xsl:with-param name="classname"> + <xsl:value-of select="$classname"/> + </xsl:with-param> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="$depth>0"> + <xsl:call-template name="get_class_hierarchy"> + <xsl:with-param name="classname"> + <xsl:call-template name="get_parent_class"> + <xsl:with-param name="classname" select="$classname"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:if> + + <!-- Horrible hack but xsl doesnt have foreach :( --> + <xsl:variable name="bad.hack"> + <xsl:choose> + <xsl:when test="$depth=0"> + <xsl:text></xsl:text> + </xsl:when> + <xsl:when test="$depth=1"> + <xsl:text disable-output-escaping="yes"> + </xsl:text> + </xsl:when> + <xsl:when test="$depth=2"> + <xsl:text disable-output-escaping="yes"> +print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=3"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 1); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=4"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 2); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=5"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 3); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=6"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 4); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=7"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 5); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=8"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 6); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=9"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 7); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=10"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 8); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=11"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 9); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=12"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 10); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text> + You need to modify hierarchy.xsl to allow for a depth greater than 12 + </xsl:text> + </xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + + <xsl:choose> + <xsl:when test="$id!='no'"> + <xsl:variable name="link"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="id($id)"/> + </xsl:call-template> + </xsl:variable> + <xsl:processing-instruction name="php"> + <xsl:value-of select="$bad.hack"/> +<xsl:text>?</xsl:text> +</xsl:processing-instruction> +<xsl:text> </xsl:text> +<a> + <xsl:attribute name="href"> + <xsl:value-of select="$link" /> + </xsl:attribute> + <xsl:value-of select="$classname" /> + </a> + <br /> + </xsl:when> + <xsl:otherwise> + <xsl:processing-instruction name="php"> + <xsl:value-of select="$bad.hack"/> + <xsl:value-of select="$classname" /> +<xsl:text>?</xsl:text> +</xsl:processing-instruction> + </xsl:otherwise> + </xsl:choose> + </xsl:template>
Index: php-gtk/docs/stylesheets/xsl/chunk.xsl.in diff -u php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.4 php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.5 --- php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.4 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/chunk.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: chunk.xsl.in,v 1.4 2001/05/04 19:30:51 jmoore Exp $ + $Id: chunk.xsl.in,v 1.5 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -30,5 +30,5 @@ <xsl:param name="base.dir" select="'build/html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> - +<xsl:param name="phpweb" select="0"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in diff -u php-gtk/docs/stylesheets/xsl/html.xsl.in:1.5 php-gtk/docs/stylesheets/xsl/html.xsl.in:1.6 --- php-gtk/docs/stylesheets/xsl/html.xsl.in:1.5 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/html.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: html.xsl.in,v 1.5 2001/05/04 19:30:51 jmoore Exp $ + $Id: html.xsl.in,v 1.6 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -30,5 +30,6 @@ <xsl:param name="base.dir" select="'build/html/'"/> <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> +<xsl:param name="phpweb" select="0"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/phpweb.xsl.in diff -u php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.2 php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.3 --- php-gtk/docs/stylesheets/xsl/phpweb.xsl.in:1.2 Fri May 4 12:30:51 2001 +++ php-gtk/docs/stylesheets/xsl/phpweb.xsl.in Thu May 10 14:54:32 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: phpweb.xsl.in,v 1.2 2001/05/04 19:30:51 jmoore Exp $ + $Id: phpweb.xsl.in,v 1.3 2001/05/10 21:54:32 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -31,5 +31,5 @@ <xsl:param name="root.filename" select="'index'" /> <xsl:param name="use.id.as.filename" select="1" /> <xsl:param name="html.ext" select="'.php'" /> - +<xsl:param name="phpweb" select="1"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.38 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.39 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.38 Wed May 9 13:44:38 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Thu May 10 14:54:33 2001 @@ -92,8 +92,24 @@ <!--========================================================================--> <xsl:template match="function|constructor"> + <xsl:call-template name="func.proto"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="append.bracket" select="0"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="function" mode="synoptic.mode"> + <xsl:call-template name="func.proto"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="append.bracket" select="1"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="func.proto"> + <xsl:param name="append.bracket" select="0" /> + <xsl:param name="node" select="." /> <xsl:variable name="funcname"> - <xsl:value-of select="."/> + <xsl:value-of select="$node"/> </xsl:variable> <xsl:variable name="id"> @@ -115,7 +131,10 @@ <xsl:attribute name="href"> <xsl:value-of select="$link" /> </xsl:attribute> - <xsl:value-of select="." /> + <xsl:value-of select="$node" /> + <xsl:if test="$append.bracket=1"> + <xsl:text>() </xsl:text> + </xsl:if> </a> </xsl:when> <xsl:otherwise> @@ -174,31 +193,38 @@ <xsl:apply-templates select="./classmeta/classtitle"/> </h1> <p> - <xsl:apply-templates select="./classmeta/shortdesc"/> + <blockquote> + <xsl:apply-templates select="./classmeta/shortdesc"/> + </blockquote> </p> <p> <h3> Object Hierarchy </h3> + <blockquote> <div class="literallayout"> <xsl:call-template name="get_class_hierarchy"> <xsl:with-param name="classname"> <xsl:value-of select="./classmeta/classtitle"/> </xsl:with-param> </xsl:call-template> - <br /> </div> + </blockquote> </p> <p> <h3>Object Properties and Methods</h3> + <blockquote> <xsl:apply-templates select="./constructor" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> <xsl:apply-templates select="./signals" mode="synoptic.mode"/> + </blockquote> </p> <p> <h3>Description</h3> - <xsl:apply-templates select="./classmeta/desc"/> + <blockquote> + <xsl:apply-templates select="./classmeta/desc"/> + </blockquote> </p> </div> <xsl:apply-templates select="./methods|./signals|./atrributes|./constructor"/> @@ -210,31 +236,35 @@ <xsl:value-of select="@id"/> </xsl:attribute> <h4>Constructor</h4> - <p> - <xsl:apply-templates select="./funcsynopsis"/> - <xsl:text> —</xsl:text> - <xsl:apply-templates select="./shortdesc" /> - </p> + <blockquote> + <xsl:apply-templates select="./funcsynopsis"/> + <xsl:text> —</xsl:text> + <xsl:apply-templates select="./shortdesc" /> + </blockquote> </div> </xsl:template> <xsl:template match="methods" mode="synoptic.mode"> + <div> <h4>Methods</h4> - <p> + <blockquote> <xsl:apply-templates select="./method" mode="synoptic.mode"/> - </p> + </blockquote> + </div> </xsl:template> <xsl:template match="method" mode="synoptic.mode"> - <xsl:apply-templates select="./funcsynopsis/funcprototype/funcdef/function"/> - <xsl:text>() —</xsl:text> + <code><xsl:apply-templates select="./funcsynopsis/funcprototype/funcdef/function" mode="synoptic.mode"/></code> + <xsl:text>—</xsl:text> <xsl:apply-templates select="./shortdesc" /> <br /> </xsl:template> <xsl:template match="attributes" mode="synoptic.mode"> <h4>Attributes</h4> + <blockquote> <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> + </blockquote> </xsl:template> <xsl:template match="attribute" mode="synoptic.mode"> @@ -243,7 +273,9 @@ <xsl:template match="signals" mode="synoptic.mode"> <h4>Signals</h4> + <blockquote> <xsl:apply-templates select="./signal" mode="synoptic.mode"/> + </blockquote> </xsl:template> <xsl:template match="signal" mode="synoptic.mode"> @@ -253,13 +285,14 @@ </xsl:template> <xsl:template match="funcsynopsis" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> + <code> + <xsl:apply-templates mode="synoptic.mode"/> + </code> </xsl:template> <xsl:template match="funcprototype" mode="synoptic.mode"> - <code> - <xsl:apply-templates mode="func.prototype"/> - </code> + <xsl:apply-templates mode="synoptic.mode"/> + </xsl:template> Index: php-gtk/docs/stylesheets/xsl/html/overrides.xsl diff -u php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.5 php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.6 --- php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.5 Fri May 4 15:52:07 2001 +++ php-gtk/docs/stylesheets/xsl/html/overrides.xsl Thu May 10 14:54:33 2001 @@ -5,14 +5,12 @@ <xsl:template match="funcprototype"> <p> - <code> <xsl:apply-templates mode="func.prototype"/> - </code> </p> </xsl:template> <xsl:template match="funcdef" mode="func.prototype"> - <code class="{name(.)}"> + <code> <xsl:apply-templates/> </code> </xsl:template> Index: php-gtk/docs/stylesheets/xsl/html/phpweb.xsl diff -u php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.3 php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.4 --- php-gtk/docs/stylesheets/xsl/html/phpweb.xsl:1.3 Wed May 9 12:59:58 2001 +++ php-gtk/docs/stylesheets/xsl/html/phpweb.xsl Thu May 10 14:54:33 2001 @@ -1,3 +1,8 @@ +<?xml version='1.0' encoding='ISO-8859-1' ?> +<!DOCTYPE xsl:stylesheet [ +<!ENTITY step "      "> +<!ENTITY nbsp " "> +]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" @@ -234,6 +239,141 @@ <xsl:with-param name="next" select="$next"/> <xsl:with-param name="up" select="$up"/> </xsl:call-template> +</xsl:template> + + +<xsl:template name="get_class_hierarchy"> + <xsl:param name="classname" /> + + <xsl:variable name="depth"> + <xsl:call-template name="current-depth"> + <xsl:with-param name="classname" select="$classname" /> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="id"> + <xsl:call-template name="get_id_from_name"> + <xsl:with-param name="classname"> + <xsl:value-of select="$classname"/> + </xsl:with-param> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="$depth>0"> + <xsl:call-template name="get_class_hierarchy"> + <xsl:with-param name="classname"> + <xsl:call-template name="get_parent_class"> + <xsl:with-param name="classname" select="$classname"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:if> + + <!-- Horrible hack but xsl doesnt have foreach :( --> + <xsl:variable name="bad.hack"> + <xsl:choose> + <xsl:when test="$depth=0"> + <xsl:text></xsl:text> + </xsl:when> + <xsl:when test="$depth=1"> + <xsl:text disable-output-escaping="yes"> + </xsl:text> + </xsl:when> + <xsl:when test="$depth=2"> + <xsl:text disable-output-escaping="yes"> +print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=3"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 1); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=4"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 2); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=5"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 3); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=6"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 4); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=7"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 5); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=8"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 6); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=9"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 7); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=10"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 8); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=11"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 9); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:when test="$depth=12"> + <xsl:text disable-output-escaping="yes"> +echo str_repeat(make_image('inhier-blank.gif'), 10); print_image('inhier-arrow.gif'); + </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text> + You need to modify hierarchy.xsl to allow for a depth greater than 12 + </xsl:text> + </xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + + <xsl:choose> + <xsl:when test="$id!='no'"> + <xsl:variable name="link"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="id($id)"/> + </xsl:call-template> + </xsl:variable> + <xsl:processing-instruction name="php"> + <xsl:value-of select="$bad.hack"/> +<xsl:text>?</xsl:text> +</xsl:processing-instruction> +<xsl:text> </xsl:text> +<a> + <xsl:attribute name="href"> + <xsl:value-of select="$link" /> + </xsl:attribute> + <xsl:value-of select="$classname" /> + </a> + <br /> + </xsl:when> + <xsl:otherwise> + <xsl:processing-instruction name="php"> + <xsl:value-of select="$bad.hack"/> + <xsl:value-of select="$classname" /> +<xsl:text>?</xsl:text> +</xsl:processing-instruction> + </xsl:otherwise> + </xsl:choose> + </xsl:template>