cvs: php-gtk /docs/stylesheets/xsl/html chunk-common.xsl chunk.xsl class.xsl html.xsl

From: Date: Fri, 13 Apr 2001 18:03:21 +0000
Subject: cvs: php-gtk /docs/stylesheets/xsl/html chunk-common.xsl chunk.xsl class.xsl html.xsl
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1372@lists.php.net to get a copy of this message
jmoore Fri Apr 13 11:03:21 2001 EDT Added files: /php-gtk/docs/stylesheets/xsl/html html.xsl Removed files: /php-gtk/docs/stylesheets/xsl/html chunk.xsl Modified files: /php-gtk/docs/stylesheets/xsl/html chunk-common.xsl class.xsl Log: Updating stylesheets so that they build with new system.

Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.4 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.5 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.4 Sun Mar 18 11:40:16 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Fri Apr 13 11:03:21 2001 @@ -5,7 +5,7 @@ version="1.0" extension-element-prefixes="saxon xalanredirect lxslt"> -<xsl:import href="chunk.xsl" /> +<xsl:import href="html.xsl" /> <xsl:template name="chunk"> <xsl:param name="node" select="."/> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.22 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.23 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.22 Sun Apr 8 07:55:21 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Fri Apr 13 11:03:21 2001 @@ -134,7 +134,6 @@ <xsl:param name="next"/> <xsl:param name="node"/> - <xsl:processing-instruction name="php"> <xsl:text>&#xA;&#xA;</xsl:text> <xsl:text>/* -*- This file is automagically created&#xA;</xsl:text> <xsl:text> Keep your grubby little fingers out&#xA;</xsl:text> @@ -156,223 +155,106 @@ <!-- Page Variables --> - <xsl:variable name="prev.link"> + <xsl:text>$tpl->define("prev_link",'</xsl:text> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="$prev"/> </xsl:call-template> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="next.link"> + <xsl:text>$tpl->define("next_link",'</xsl:text> <xsl:call-template name="href.target"> <xsl:with-param name="object" select="$next"/> </xsl:call-template> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="prev.title"> - <xsl:apply-templates select="$prev" mode="title.ref"/> - </xsl:variable> - - <xsl:variable name="next.title"> - <xsl:apply-templates select="$next" mode="title.ref"/> - </xsl:variable> + <xsl:text>$tpl->define("prev_title",'</xsl:text> + <xsl:apply-templates select="$prev" mode="title.ref"/> + <xsl:text>');&#xA;</xsl:text> + + <xsl:text>$tpl->define("next_title",'</xsl:text> + <xsl:apply-templates select="$next" mode="title.ref"/> + <xsl:text>');&#xA;</xsl:text> <!-- Class Meta Variables --> <xsl:variable name="class.title"> <xsl:value-of select="$node/classmeta/classtitle"/> </xsl:variable> - <xsl:variable name="class.parent"> + <xsl:text>$tpl->define("class_title",'</xsl:text> + <xsl:value-of select="$node/classmeta/classtitle"/> + <xsl:text>');&#xA;</xsl:text> + + <xsl:text>$tpl->define("class_parent",'</xsl:text> <xsl:value-of select="$node/classmeta/classparent"/> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="class.shortdesc"> - <xsl:value-of select="$node/classmeta/shortdesc"/> - </xsl:variable> + <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> + <xsl:apply-templates select="$node/classmeta/shortdesc"/> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="class.desc"> + <xsl:text>$tpl->define("class_desc",'</xsl:text> <xsl:apply-templates select="$node/classmeta/desc"/> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> + <!-- Constructor information --> - <xsl:variable name="constructor.funcsynopsis"> + + <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> <xsl:apply-templates select="$node/constructor/funcsynopsis"/> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="constructor.shortdesc"> + <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> <xsl:apply-templates select="$node/constructor/shortdesc"/> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> - <xsl:variable name="constructor.desc"> + <xsl:text>$tpl->define("constructor_desc",'</xsl:text> <xsl:apply-templates select="$node/constructor/desc"/> - </xsl:variable> + <xsl:text>');&#xA;</xsl:text> + <!-- Methods Information --> - <xsl:variable name="methods.content"> <xsl:for-each select="$node/methods/method"> <xsl:call-template name="add-element-to-methods-array"> <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="function.name"> - <xsl:value-of - select="./funcsynopsis/funcprototype/funcdef/function"/> - </xsl:with-param> - <xsl:with-param name="funcsynopsis"> - <xsl:apply-templates select="./funcsynopsis"/> - </xsl:with-param> - <xsl:with-param name="shortdesc"> - <xsl:apply-templates select="./shortdesc"/> - </xsl:with-param> - <xsl:with-param name="desc"> - <xsl:apply-templates select="./desc"/> - </xsl:with-param> + <xsl:with-param name="function.name" select="./funcsynopsis/funcprototype/funcdef/function"/> + <xsl:with-param name="funcsynopsis" select="./funcsynopsis"/> + <xsl:with-param name="shortdesc" select="./shortdesc"/> + <xsl:with-param name="desc" select="./desc"/> </xsl:call-template> </xsl:for-each> - </xsl:variable> + <!-- Attribuites Information --> - <xsl:variable name="attributes.content"> <xsl:for-each select="$node/attributes/attribute"> <xsl:call-template name="add-element-to-attribute-array"> <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="attribute.name"> - <xsl:apply-templates select="./attributename"/> - </xsl:with-param> - <xsl:with-param name="shortdesc"> - <xsl:apply-templates select="./shortdesc"/> - </xsl:with-param> - <xsl:with-param name="desc"> - <xsl:apply-templates select="./desc"/> - </xsl:with-param> + <xsl:with-param name="attribute.name" select="./attributename"/> + <xsl:with-param name="shortdesc" select="./shortdesc"/> + <xsl:with-param name="desc" select="./desc"/> </xsl:call-template> </xsl:for-each> - </xsl:variable> + <!-- Signals Information --> - <xsl:variable name="signals.content"> + <xsl:for-each select="$node/signals/signal"> <xsl:call-template name="add-element-to-signal-array"> <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="signal.name"> - <xsl:apply-templates select="./signalname"/> - </xsl:with-param> - <xsl:with-param name="firedwhen"> - <xsl:apply-templates select="./firedwhen"/> - </xsl:with-param> - <xsl:with-param name="shortdesc"> - <xsl:apply-templates select="./shortdesc"/> - </xsl:with-param> - <xsl:with-param name="desc"> - <xsl:apply-templates select="./desc"/> - </xsl:with-param> + <xsl:with-param name="signal.name" select="./signalname"/> + <xsl:with-param name="firedwhen" select="./firedwhen"/> + <xsl:with-param name="shortdesc" select="./shortdesc"/> + <xsl:with-param name="desc" select="./desc"/> </xsl:call-template> </xsl:for-each> - </xsl:variable> - <!-- Output the variable values --> - <!-- Page values --> - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>prev_link</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$prev.link"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name" > - <xsl:text>next_link</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$next.link"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>prev_title</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$prev.title"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>next_title</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$next.title"/> - </xsl:call-template> - - <!-- Class meta data --> - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>class_title</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$class.title"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>class_parent</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$class.parent"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>class_shortdesc</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$class.shortdesc"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>class_desc</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$class.desc"/> - </xsl:call-template> - - <!-- Class Constructor Data --> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>constructor_funcsynopsis</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$constructor.funcsynopsis"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>constructor_shortdesc</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$constructor.shortdesc"/> - </xsl:call-template> - - <xsl:call-template name="xsl-to-php"> - <xsl:with-param name="class.title" select="$class.title"/> - <xsl:with-param name="var.name"> - <xsl:text>constructor_desc</xsl:text> - </xsl:with-param> - <xsl:with-param name="var.value" select="$constructor.desc"/> - </xsl:call-template> - - <!-- Output the rest of it --> - <xsl:value-of select="$methods.content"/> - <xsl:value-of select="$attributes.content"/> - <xsl:value-of select="$signals.content"/> - <xsl:text>&#xA;</xsl:text> <xsl:text> $counter = 0; - $tpl->define("class_hierarchy",get_class_hierarchy( + $tpl->define("class_hierarchy",get_class_hierarchy(' </xsl:text> <xsl:value-of select="$class.title"/> - <xsl:text>,$counter));&#xA;</xsl:text> + <xsl:text>',$counter));&#xA;</xsl:text> <xsl:text> if($methods) { while(list($key,$val) = each($methods)) { @@ -413,25 +295,6 @@ fclose($fp);&#xA;&#xA; </xsl:text> - <!-- hack for bug in saxon --> - <xsl:text>?</xsl:text> - </xsl:processing-instruction> -</xsl:template> - -<xsl:template name="xsl-to-php" > - <xsl:param name="class.title" /> - <xsl:param name="var.name" /> - <xsl:param name="var.value"/> - - <!-- Escape any " --> - <xsl:variable name="var.value.escaped" select="translate($var.value,'&quot;','\&quot;')"/> - - <xsl:text>$tpl->define("</xsl:text> - <xsl:value-of select="$var.name" /> - <xsl:text>","</xsl:text> - <xsl:value-of select="$var.value.escaped"/> - <xsl:text>");&#xA;</xsl:text> - </xsl:template> <xsl:template name="add-element-to-methods-array"> @@ -443,32 +306,28 @@ <xsl:param name="function.name"/> <!-- Escape any " --> - <xsl:variable name="funcsynopsis.escaped" select="translate($funcsynopsis, '&quot;', '\&quot;')"/> - <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '&quot;', '\&quot;')"/> - <xsl:variable name="desc.escaped" select="translate($desc, '&quot;', '\&quot;')"/> - <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> <xsl:text>][</xsl:text> <xsl:text>funcsynopsis</xsl:text> - <xsl:text>] = &quot;</xsl:text> - <xsl:value-of select="$funcsynopsis.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>] = '</xsl:text> + <xsl:apply-templates select="$funcsynopsis"/> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name" /> <xsl:text>][</xsl:text> <xsl:text>shortdesc</xsl:text> - <xsl:text>] = &quot;</xsl:text> - <xsl:value-of select="$shortdesc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>] = '</xsl:text> + <xsl:apply-templates select="$shortdesc"/> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$methods[</xsl:text> <xsl:value-of select="$function.name"/> <xsl:text>][desc</xsl:text> - <xsl:text>] = &quot;</xsl:text> - <xsl:value-of select="$desc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>] = '</xsl:text> + <xsl:apply-templates select="$desc"/> + <xsl:text>';&#xA;</xsl:text> </xsl:template> @@ -488,25 +347,25 @@ <xsl:value-of select="$attribute.name"/> <xsl:text>][</xsl:text> <xsl:text>name</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$attribute.name.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> <xsl:text>][</xsl:text> <xsl:text>shortdesc</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$shortdesc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$attributes[</xsl:text> <xsl:value-of select="$attribute.name" /> <xsl:text>][</xsl:text> <xsl:text>desc</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$desc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> </xsl:template> @@ -527,33 +386,33 @@ <xsl:text>$signals[</xsl:text> <xsl:value-of select="$signal.name.escaped"/> <xsl:text>][name</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$signal.name.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$signals[</xsl:text> <xsl:value-of select="$signal.name.escaped" /> <xsl:text>][</xsl:text> <xsl:text>firedwhen</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$firedwhen.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$signals[</xsl:text> <xsl:value-of select="$signal.name.escaped" /> <xsl:text>][</xsl:text> <xsl:text>shortdesc</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$shortdesc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> <xsl:text>$signals[</xsl:text> <xsl:value-of select="$signal.name.escaped" /> <xsl:text>][</xsl:text> <xsl:text>desc</xsl:text> - <xsl:text>] = &quot;</xsl:text> + <xsl:text>] = '</xsl:text> <xsl:value-of select="$desc.escaped"/> - <xsl:text>&quot;;&#xA;</xsl:text> + <xsl:text>';&#xA;</xsl:text> </xsl:template> Index: php-gtk/docs/stylesheets/xsl/html/html.xsl +++ php-gtk/docs/stylesheets/xsl/html/html.xsl <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="classset.titlepage.xsl"/> <xsl:include href="title.xsl"/> <xsl:include href="label.xsl"/> <xsl:include href="class.xsl"/> <xsl:include href="toc.xsl"/> <xsl:include href="overrides.xsl"/> <!-- ==================================================================== --> </xsl:stylesheet>
« previous php.gtk (#1372) next »