cvs: php-gtk /docs/en/classes gtkdata.xml gtkitemfactory.xml gtkobject.xml gtkwidget.xml /docs/scripts CommonFuncs.inc /docs/stylesheets/xsl/html
chunk-common.xsl class.xsl hierarchy.xsl html.xsl /docs/templates classentry.tpl
| From: | James Moore | Date: | Sun, 15 Apr 2001 21:22:58 +0000 |
| Subject: | cvs: php-gtk /docs/en/classes gtkdata.xml gtkitemfactory.xml gtkobject.xml gtkwidget.xml /docs/scripts CommonFuncs.inc /docs/stylesheets/xsl/html chunk-common.xsl class.xsl hierarchy.xsl html.xsl /docs/templates classentry.tpl |
||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1416@lists.php.net to get a copy of this message | ||
jmoore Sun Apr 15 14:22:58 2001 EDT
Added files:
/php-gtk/docs/stylesheets/xsl/html hierarchy.xsl
Removed files:
/php-gtk/docs/scripts CommonFuncs.inc
Modified files:
/php-gtk/docs/en/classes gtkdata.xml gtkitemfactory.xml
gtkobject.xml gtkwidget.xml
/php-gtk/docs/stylesheets/xsl/html chunk-common.xsl class.xsl
html.xsl
/php-gtk/docs/templates classentry.tpl
Log:
- Object Hierarchy is now derived from XML rather than a php-gtk script.
# Glad I dont program in XSL every day.. recursion and debuggin in XSL
# is a real bitch.
Index: php-gtk/docs/en/classes/gtkdata.xml diff -u php-gtk/docs/en/classes/gtkdata.xml:1.5 php-gtk/docs/en/classes/gtkdata.xml:1.6 --- php-gtk/docs/en/classes/gtkdata.xml:1.5 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkdata.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkData</classtitle> + <classparent>GtkObject</classparent> <shortdesc>A base class for widgets containing data</shortdesc> <desc> <para> Index: php-gtk/docs/en/classes/gtkitemfactory.xml diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.7 php-gtk/docs/en/classes/gtkitemfactory.xml:1.8 --- php-gtk/docs/en/classes/gtkitemfactory.xml:1.7 Sun Apr 15 06:57:53 2001 +++ php-gtk/docs/en/classes/gtkitemfactory.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkItemFactory</classtitle> + <classparent>GtkObject</classparent> <shortdesc>A base class for ItemFactory widgets</shortdesc> <desc> <simpara> Index: php-gtk/docs/en/classes/gtkobject.xml diff -u php-gtk/docs/en/classes/gtkobject.xml:1.7 php-gtk/docs/en/classes/gtkobject.xml:1.8 --- php-gtk/docs/en/classes/gtkobject.xml:1.7 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkobject.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkObject</classtitle> + <classparent /> <shortdesc>Base object of GTK hierarchy</shortdesc> <desc> <simpara> Index: php-gtk/docs/en/classes/gtkwidget.xml diff -u php-gtk/docs/en/classes/gtkwidget.xml:1.4 php-gtk/docs/en/classes/gtkwidget.xml:1.5 --- php-gtk/docs/en/classes/gtkwidget.xml:1.4 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkwidget.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkWidget</classtitle> + <classparent>GtkObject</classparent> <shortdesc>Base widget object of GTK hierarchy</shortdesc> <desc> <simpara> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.7 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.8 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.7 Sun Apr 15 08:45:32 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Sun Apr 15 14:22:57 2001 @@ -390,7 +390,6 @@ <xsl:text> 

 require_once("../scripts/TemplateParser.class");
 - require_once("../scripts/CommonFuncs.inc");
 $tpl = new TemplateParser("../templates/");
 $tpl->addtemplate("classentry_tpl","classentry.tpl");
 $tpl->addtemplate("methods_tpl","classmethods.tpl");
 @@ -429,6 +428,14 @@ <xsl:value-of select="$node/classmeta/classtitle"/> </xsl:variable> + <xsl:text>$tpl->define("obj_hierarchy",'</xsl:text> + <xsl:call-template name="get_class_hierarchy"> + <xsl:with-param name="classname"> + <xsl:value-of select="$class.title"/> + </xsl:with-param> + </xsl:call-template> + <xsl:text>');
</xsl:text> + <xsl:text>$tpl->define("class_title",'</xsl:text> <xsl:value-of select="$node/classmeta/classtitle"/> <xsl:text>');
</xsl:text> @@ -499,12 +506,6 @@ <xsl:text>
</xsl:text> <xsl:text> - $counter = 0; - $tpl->define("class_hierarchy",get_class_hierarchy(' - </xsl:text> - <xsl:value-of select="$class.title"/> - <xsl:text>',$counter));
</xsl:text> - <xsl:text> if($methods) { while(list($key,$val) = each($methods)) { $tpl->define("METHOD_NAME", $val['name']); @@ -556,32 +557,25 @@ <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][</xsl:text> - <xsl:text>name</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][name] = '</xsl:text> <xsl:value-of select="$function.name"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][</xsl:text> - <xsl:text>funcsynopsis</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][funcsynopsis] = '</xsl:text> <xsl:apply-templates select="$funcsynopsis"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name" /> - <xsl:text>][</xsl:text> - <xsl:text>shortdesc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][shortdesc] = '</xsl:text> <xsl:apply-templates select="$shortdesc"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][desc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][desc] = '</xsl:text> <xsl:apply-templates select="$desc"/> <xsl:text>';
</xsl:text> @@ -596,25 +590,19 @@ <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name"/> - <xsl:text>][</xsl:text> - <xsl:text>name</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][name] = '</xsl:text> <xsl:apply-templates select="$attribute.name"/> <xsl:text>';
</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> - <xsl:text>][</xsl:text> - <xsl:text>shortdesc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][shortdesc] = '</xsl:text> <xsl:apply-templates select="$shortdesc"/> <xsl:text>';
</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> - <xsl:text>][</xsl:text> - <xsl:text>desc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][desc] = '</xsl:text> <xsl:apply-templates select="$desc"/> <xsl:text>';
</xsl:text> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.27 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.28 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.27 Sun Apr 15 08:45:32 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Sun Apr 15 14:22:57 2001 @@ -26,7 +26,7 @@ <xsl:call-template name="object.id" /> </xsl:variable> <div class="{name(.)}" id="{$id}"> - <xsl:call-template name="classset.titlepage"/> + <!-- TODO: Titlepage in here --> <xsl:call-template name="component.toc"/> <xsl:apply-templates/> </div> Index: php-gtk/docs/stylesheets/xsl/html/html.xsl diff -u php-gtk/docs/stylesheets/xsl/html/html.xsl:1.2 php-gtk/docs/stylesheets/xsl/html/html.xsl:1.3 --- php-gtk/docs/stylesheets/xsl/html/html.xsl:1.2 Sun Apr 15 05:58:51 2001 +++ php-gtk/docs/stylesheets/xsl/html/html.xsl Sun Apr 15 14:22:57 2001 @@ -1,3 +1,4 @@ +<?xml version='1.0' encoding='ISO-8859-1' ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -5,6 +6,7 @@ <xsl:include href="title.xsl"/> <xsl:include href="label.xsl"/> <xsl:include href="name_to_id.xsl"/> +<xsl:include href="hierarchy.xsl"/> <xsl:include href="class.xsl"/> <xsl:include href="toc.xsl"/> <xsl:include href="overrides.xsl"/> Index: php-gtk/docs/templates/classentry.tpl diff -u php-gtk/docs/templates/classentry.tpl:1.5 php-gtk/docs/templates/classentry.tpl:1.6 --- php-gtk/docs/templates/classentry.tpl:1.5 Wed Apr 11 02:10:09 2001 +++ php-gtk/docs/templates/classentry.tpl Sun Apr 15 14:22:57 2001 @@ -57,9 +57,7 @@ </h3> <p> <div class="literallayout"><br> - <pre> -[%CLASS_HIERARCHY%] -</pre> +[%obj_hierarchy%] <br> </div> </p> Index: php-gtk/docs/stylesheets/xsl/html/hierarchy.xsl +++ php-gtk/docs/stylesheets/xsl/html/hierarchy.xsl <?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE xsl:stylesheet [ <!ENTITY step "      "> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="generate_hierarchy"/> <xsl:template name="get_parent_class"> <xsl:param name="classname"/> <xsl:choose> <xsl:when test="$classname!=''"> <xsl:variable name="classid"> <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:variable name="classentry" select="id($classid)"/> <xsl:value-of select="$classentry/classmeta/classparent" /> </xsl:when> <xsl:otherwise /> </xsl:choose> </xsl:template> <xsl:template name="current-depth"> <xsl:param name="classname"/> <xsl:choose> <xsl:when test="$classname!=''"> <xsl:variable name="preceeding-depth"> <xsl:call-template name="current-depth"> <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:variable> <xsl:value-of select="$preceeding-depth+1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="0"/> </xsl:otherwise> </xsl:choose> </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"> &step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=3"> <xsl:text disable-output-escaping="yes"> &step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=4"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=5"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=6"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=7"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=8"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=9"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=10"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=11"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=12"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </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:value-of select="$bad.hack"/> <a> <xsl:attribute name="href"> <xsl:value-of select="$link" /> </xsl:attribute> <xsl:value-of select="$classname" /> </a> <br /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$bad.hack"/> <xsl:value-of select="$classname" /> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
Index: php-gtk/docs/en/classes/gtkdata.xml diff -u php-gtk/docs/en/classes/gtkdata.xml:1.5 php-gtk/docs/en/classes/gtkdata.xml:1.6 --- php-gtk/docs/en/classes/gtkdata.xml:1.5 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkdata.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkData</classtitle> + <classparent>GtkObject</classparent> <shortdesc>A base class for widgets containing data</shortdesc> <desc> <para> Index: php-gtk/docs/en/classes/gtkitemfactory.xml diff -u php-gtk/docs/en/classes/gtkitemfactory.xml:1.7 php-gtk/docs/en/classes/gtkitemfactory.xml:1.8 --- php-gtk/docs/en/classes/gtkitemfactory.xml:1.7 Sun Apr 15 06:57:53 2001 +++ php-gtk/docs/en/classes/gtkitemfactory.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkItemFactory</classtitle> + <classparent>GtkObject</classparent> <shortdesc>A base class for ItemFactory widgets</shortdesc> <desc> <simpara> Index: php-gtk/docs/en/classes/gtkobject.xml diff -u php-gtk/docs/en/classes/gtkobject.xml:1.7 php-gtk/docs/en/classes/gtkobject.xml:1.8 --- php-gtk/docs/en/classes/gtkobject.xml:1.7 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkobject.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkObject</classtitle> + <classparent /> <shortdesc>Base object of GTK hierarchy</shortdesc> <desc> <simpara> Index: php-gtk/docs/en/classes/gtkwidget.xml diff -u php-gtk/docs/en/classes/gtkwidget.xml:1.4 php-gtk/docs/en/classes/gtkwidget.xml:1.5 --- php-gtk/docs/en/classes/gtkwidget.xml:1.4 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkwidget.xml Sun Apr 15 14:22:56 2001 @@ -2,6 +2,7 @@ <classmeta> <classtitle>GtkWidget</classtitle> + <classparent>GtkObject</classparent> <shortdesc>Base widget object of GTK hierarchy</shortdesc> <desc> <simpara> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.7 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.8 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.7 Sun Apr 15 08:45:32 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Sun Apr 15 14:22:57 2001 @@ -390,7 +390,6 @@ <xsl:text> 

 require_once("../scripts/TemplateParser.class");
 - require_once("../scripts/CommonFuncs.inc");
 $tpl = new TemplateParser("../templates/");
 $tpl->addtemplate("classentry_tpl","classentry.tpl");
 $tpl->addtemplate("methods_tpl","classmethods.tpl");
 @@ -429,6 +428,14 @@ <xsl:value-of select="$node/classmeta/classtitle"/> </xsl:variable> + <xsl:text>$tpl->define("obj_hierarchy",'</xsl:text> + <xsl:call-template name="get_class_hierarchy"> + <xsl:with-param name="classname"> + <xsl:value-of select="$class.title"/> + </xsl:with-param> + </xsl:call-template> + <xsl:text>');
</xsl:text> + <xsl:text>$tpl->define("class_title",'</xsl:text> <xsl:value-of select="$node/classmeta/classtitle"/> <xsl:text>');
</xsl:text> @@ -499,12 +506,6 @@ <xsl:text>
</xsl:text> <xsl:text> - $counter = 0; - $tpl->define("class_hierarchy",get_class_hierarchy(' - </xsl:text> - <xsl:value-of select="$class.title"/> - <xsl:text>',$counter));
</xsl:text> - <xsl:text> if($methods) { while(list($key,$val) = each($methods)) { $tpl->define("METHOD_NAME", $val['name']); @@ -556,32 +557,25 @@ <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][</xsl:text> - <xsl:text>name</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][name] = '</xsl:text> <xsl:value-of select="$function.name"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][</xsl:text> - <xsl:text>funcsynopsis</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][funcsynopsis] = '</xsl:text> <xsl:apply-templates select="$funcsynopsis"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name" /> - <xsl:text>][</xsl:text> - <xsl:text>shortdesc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][shortdesc] = '</xsl:text> <xsl:apply-templates select="$shortdesc"/> <xsl:text>';
</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> - <xsl:text>][desc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][desc] = '</xsl:text> <xsl:apply-templates select="$desc"/> <xsl:text>';
</xsl:text> @@ -596,25 +590,19 @@ <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name"/> - <xsl:text>][</xsl:text> - <xsl:text>name</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][name] = '</xsl:text> <xsl:apply-templates select="$attribute.name"/> <xsl:text>';
</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> - <xsl:text>][</xsl:text> - <xsl:text>shortdesc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][shortdesc] = '</xsl:text> <xsl:apply-templates select="$shortdesc"/> <xsl:text>';
</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> - <xsl:text>][</xsl:text> - <xsl:text>desc</xsl:text> - <xsl:text>] = '</xsl:text> + <xsl:text>][desc] = '</xsl:text> <xsl:apply-templates select="$desc"/> <xsl:text>';
</xsl:text> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.27 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.28 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.27 Sun Apr 15 08:45:32 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Sun Apr 15 14:22:57 2001 @@ -26,7 +26,7 @@ <xsl:call-template name="object.id" /> </xsl:variable> <div class="{name(.)}" id="{$id}"> - <xsl:call-template name="classset.titlepage"/> + <!-- TODO: Titlepage in here --> <xsl:call-template name="component.toc"/> <xsl:apply-templates/> </div> Index: php-gtk/docs/stylesheets/xsl/html/html.xsl diff -u php-gtk/docs/stylesheets/xsl/html/html.xsl:1.2 php-gtk/docs/stylesheets/xsl/html/html.xsl:1.3 --- php-gtk/docs/stylesheets/xsl/html/html.xsl:1.2 Sun Apr 15 05:58:51 2001 +++ php-gtk/docs/stylesheets/xsl/html/html.xsl Sun Apr 15 14:22:57 2001 @@ -1,3 +1,4 @@ +<?xml version='1.0' encoding='ISO-8859-1' ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -5,6 +6,7 @@ <xsl:include href="title.xsl"/> <xsl:include href="label.xsl"/> <xsl:include href="name_to_id.xsl"/> +<xsl:include href="hierarchy.xsl"/> <xsl:include href="class.xsl"/> <xsl:include href="toc.xsl"/> <xsl:include href="overrides.xsl"/> Index: php-gtk/docs/templates/classentry.tpl diff -u php-gtk/docs/templates/classentry.tpl:1.5 php-gtk/docs/templates/classentry.tpl:1.6 --- php-gtk/docs/templates/classentry.tpl:1.5 Wed Apr 11 02:10:09 2001 +++ php-gtk/docs/templates/classentry.tpl Sun Apr 15 14:22:57 2001 @@ -57,9 +57,7 @@ </h3> <p> <div class="literallayout"><br> - <pre> -[%CLASS_HIERARCHY%] -</pre> +[%obj_hierarchy%] <br> </div> </p> Index: php-gtk/docs/stylesheets/xsl/html/hierarchy.xsl +++ php-gtk/docs/stylesheets/xsl/html/hierarchy.xsl <?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE xsl:stylesheet [ <!ENTITY step "      "> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="generate_hierarchy"/> <xsl:template name="get_parent_class"> <xsl:param name="classname"/> <xsl:choose> <xsl:when test="$classname!=''"> <xsl:variable name="classid"> <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:variable name="classentry" select="id($classid)"/> <xsl:value-of select="$classentry/classmeta/classparent" /> </xsl:when> <xsl:otherwise /> </xsl:choose> </xsl:template> <xsl:template name="current-depth"> <xsl:param name="classname"/> <xsl:choose> <xsl:when test="$classname!=''"> <xsl:variable name="preceeding-depth"> <xsl:call-template name="current-depth"> <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:variable> <xsl:value-of select="$preceeding-depth+1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="0"/> </xsl:otherwise> </xsl:choose> </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"> &step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=3"> <xsl:text disable-output-escaping="yes"> &step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=4"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=5"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=6"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=7"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=8"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=9"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=10"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=11"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </xsl:text> </xsl:when> <xsl:when test="$depth=12"> <xsl:text disable-output-escaping="yes"> &step;&step;&step;&step;&step;&step;&step;&step;&step;&step;&step;`-- </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:value-of select="$bad.hack"/> <a> <xsl:attribute name="href"> <xsl:value-of select="$link" /> </xsl:attribute> <xsl:value-of select="$classname" /> </a> <br /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$bad.hack"/> <xsl:value-of select="$classname" /> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>