cvs: php-gtk /docs configure.in /docs/stylesheets/xsl chunk.xsl.in html.xsl.in /docs/stylesheets/xsl/html chunk-common.xsl class.xsl
| From: | James Moore | Date: | Sat, 14 Apr 2001 10:37:08 +0000 |
| Subject: | cvs: php-gtk /docs configure.in /docs/stylesheets/xsl chunk.xsl.in html.xsl.in /docs/stylesheets/xsl/html chunk-common.xsl class.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1384@lists.php.net to get a copy of this message | ||
jmoore Sat Apr 14 03:37:08 2001 EDT
Modified files:
/php-gtk/docs configure.in
/php-gtk/docs/stylesheets/xsl chunk.xsl.in html.xsl.in
/php-gtk/docs/stylesheets/xsl/html chunk-common.xsl class.xsl
Log:
Prepairing to build manual with no chunks as well
# - Im commiting this now as I probably wont have time to finish stylesheets for
# the next day or so. everything works for me shout if ive browken something
# for you. Ill sort the stylesheets for make nochunk asap.
Index: php-gtk/docs/configure.in diff -u php-gtk/docs/configure.in:1.10 php-gtk/docs/configure.in:1.11 --- php-gtk/docs/configure.in:1.10 Sat Apr 14 03:04:37 2001 +++ php-gtk/docs/configure.in Sat Apr 14 03:37:07 2001 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.10 2001/04/14 10:04:37 jmoore Exp $ +dnl $Id: configure.in,v 1.11 2001/04/14 10:37:07 jmoore Exp $ AC_INIT(global.ent) @@ -28,32 +28,24 @@ do if test -d "$dir"; then if test "$dir" = "stylesheets/xsl/docbook"; then - DOCBOOKXSL_BIGHTML="docbook/html/docbook.xsl" - DOCBOOKXSL_HTML="docbook/html/chunk.xsl" - DOCBOOKXSL_HTMLHELP="docbook/contrib/htmlhelp/htmlhelp.xsl" - DOCBOOKXSL_PRINT="docbook/fo/docbook.xsl" + DOCBOOKXSL_HTML="docbook/html/docbook.xsl" + DOCBOOKXSL_CHUNK="docbook/html/chunk.xsl" else - DOCBOOKXSL_BIGHTML="$dir/html/docbook.xsl" - DOCBOOKXSL_HTML="$dir/html/chunk.xsl" - DOCBOOKXSL_HTMLHELP="$dir/contrib/htmlhelp/htmlhelp.xsl" - DOCBOOKXSL_PRINT="$dir/fo/docbook.xsl" + DOCBOOKXSL_HTML="$dir/html/docbook.xsl" + DOCBOOKXSL_CHUNK="$dir/html/chunk.xsl" fi AC_MSG_RESULT(in $dir) break fi done ]) -if test -z "$DOCBOOKXSL_BIGHTML"; then - DOCBOOKXSL_BIGHTML="there-is-not-default-yet" +if test -z "$DOCBOOKXSL_HTML"; then + DOCBOOKXSL_CHUNK="there-is-not-default-yet" DOCBOOKXSL_HTML="there-is-not-default-yet" - DOCBOOKXSL_HTMLHELP="there-is-not-default-yet" - DOCBOOKXSL_PRINT="there-is-not-default-yet" AC_MSG_RESULT(defaulting) fi -AC_SUBST(DOCBOOKXSL_BIGHTML) +AC_SUBST(DOCBOOKXSL_CHUNK) AC_SUBST(DOCBOOKXSL_HTML) -AC_SUBST(DOCBOOKXSL_HTMLHELP) -AC_SUBST(DOCBOOKXSL_PRINT) PHP_GTK_DOC_BUILD_DATE=`date` AC_SUBST(PHP_GTK_DOC_BUILD_DATE) Index: php-gtk/docs/stylesheets/xsl/chunk.xsl.in diff -u php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.1 php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.2 --- php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.1 Fri Apr 13 12:28:21 2001 +++ php-gtk/docs/stylesheets/xsl/chunk.xsl.in Sat Apr 14 03:37:08 2001 @@ -2,14 +2,14 @@ HTML specific stylesheet - $Id: chunk.xsl.in,v 1.1 2001/04/13 19:28:21 jmoore Exp $ + $Id: chunk.xsl.in,v 1.2 2001/04/14 10:37:08 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwlash.com/xsl/documentation/1.0" version="1.0"> -<xsl:import href="@DOCBOOKXSL_HTML@"/> +<xsl:import href="@DOCBOOKXSL_CHUNK@"/> <xsl:include href="html/chunk-common.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in diff -u php-gtk/docs/stylesheets/xsl/html.xsl.in:1.3 php-gtk/docs/stylesheets/xsl/html.xsl.in:1.4 --- php-gtk/docs/stylesheets/xsl/html.xsl.in:1.3 Sun Mar 18 11:40:16 2001 +++ php-gtk/docs/stylesheets/xsl/html.xsl.in Sat Apr 14 03:37:08 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: html.xsl.in,v 1.3 2001/03/18 19:40:16 jmoore Exp $ + $Id: html.xsl.in,v 1.4 2001/04/14 10:37:08 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -10,7 +10,7 @@ version="1.0"> <xsl:import href="@DOCBOOKXSL_HTML@"/> -<xsl:include href="html/chunk-common.xsl" /> +<xsl:include href="html/html.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> @@ -23,7 +23,7 @@ --> <xsl:param name="toc.section.depth" doc:type="integer" - doc:min="1" doc:max="2" /> + doc:min="1" doc:max="5" /> <xsl:param name="generate.component.toc" select="1" /> <xsl:param name="generate.division.toc" select="1" /> <xsl:param name="default.table.width" select="100" /> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.5 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.6 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.5 Fri Apr 13 11:03:21 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Sat Apr 14 03:37:08 2001 @@ -248,9 +248,425 @@ <!-- ==================================================================== --> -<xsl:template match="classset|classentry"> +<xsl:template match="classset"> <xsl:call-template name="process-chunk-element"/> </xsl:template> + +<!--================================================================--> + + <!-- These are for outputting the intermediate .php files + which the html is derived from --> + <xsl:template match="classentry"> + <xsl:call-template name="handle.php.classentry"> + <xsl:with-param name="classentry" select="."/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="handle.php.classentry"> + <xsl:param name="classentry"/> + <xsl:call-template name="process-php-chunk-element"> + <xsl:with-param name="node" select="$classentry"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="process-php-chunk-element"> + <xsl:param name="node"/> + + <xsl:variable name="prev" + select="(preceding::book[1] + |preceding::preface[1] + |preceding::chapter[1] + |preceding::appendix[1] + |preceding::part[1] + |preceding::classset[1] + |preceding::classentry[1] + |preceding::reference[1] + |preceding::refentry[1] + |preceding::colophon[1] + |preceding::sect1[name(preceding-sibling::*[1]) = 'sect1'][1] + |preceding::section[name(preceding-sibling::*[1]) = 'section' + and name(parent::*) != 'section'][1] + |preceding::article[1] + |preceding::bibliography[1] + |preceding::glossary[1] + |preceding::index[1] + |preceding::setindex[1] + |ancestor::set + |ancestor::book[1] + |ancestor::preface[1] + |ancestor::chapter[1] + |ancestor::appendix[1] + |ancestor::part[1] + |ancestor::reference[1] + |ancestor::classset[1] + |ancestor::article[1])[last()]"/> + <xsl:variable name="next" + select="(following::book[1] + |following::preface[1] + |following::chapter[1] + |following::appendix[1] + |following::part[1] + |following::classset[1] + |following::classentry[1] + |following::reference[1] + |following::refentry[1] + |following::colophon[1] + |following::sect1[1] + |following::section[name(parent::*) != 'section'][1] + |following::bibliography[1] + |following::glossary[1] + |following::index[1] + |following::article[1] + |following::setindex[1] + |descendant::book[1] + |descendant::preface[1] + |descendant::chapter[1] + |descendant::appendix[1] + |descendant::article[1] + |descendant::bibliography[1] + |descendant::glossary[1] + |descendant::index[1] + |descendant::colophon[1] + |descendant::setindex[1] + |descendant::part[1] + |descendant::classset[1] + |descendant::classentry[1] + |descendant::reference[1] + |descendant::refentry[1] + |descendant::sect1[2] + |descendant::section[name(parent::*) != 'section'][2])[1]"/> + <xsl:variable name="ischunk"> + <xsl:call-template name="chunk"/> + </xsl:variable> + + <xsl:variable name="chunkfn"> + <xsl:if test="$ischunk='1'"> + <xsl:apply-templates mode="chunk-filename" select="$node"/> + </xsl:if> + </xsl:variable> + + <xsl:variable name="filename"> + <xsl:call-template name="make-relative-filename"> + <xsl:with-param name="base.dir" select="$base.dir"/> + <xsl:with-param name="base.name" select="$chunkfn"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="php-filename"> + <xsl:value-of select="$filename"/> + <xsl:text>.php</xsl:text> + </xsl:variable> + + <xsl:message> + <xsl:text>Writing </xsl:text> + <xsl:value-of select="$php-filename"/> + <xsl:text> for </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> + + <xsl:call-template name="write.chunk"> + <xsl:with-param name="filename" select="$php-filename"/> + <xsl:with-param name="content"> + <xsl:call-template name="classentry-php-content"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="node" select="$node"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + </xsl:template> + + + <xsl:template name="classentry-php-content"> + <xsl:param name="prev"/> + <xsl:param name="next"/> + <xsl:param name="node"/> + + <xsl:text>

</xsl:text> + <xsl:text>/* -*- This file is automagically created
</xsl:text> + <xsl:text> Keep your grubby little fingers out
</xsl:text> + <xsl:text> and modify the stylesheets instead. -*- */
</xsl:text> + <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");
 + $tpl->addtemplate("signals_tpl","classsignals.tpl");
 + $tpl->addtemplate("attributes_tpl","classattributes.tpl");
 + $tpl->addtemplate("methods_summary_tpl","classmethods_summary.tpl");
 + $tpl->addtemplate("signals_summary_tpl","classsignals_summary.tpl");
 + $tpl->addtemplate("attributes_summary_tpl","classattributes_summary.tpl");
 + $filename = ereg_replace(".php","", __FILE__ ); + </xsl:text> + + <!-- Page Variables --> + + <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:text>');
</xsl:text> + + <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:text>');
</xsl:text> + + <xsl:text>$tpl->define("prev_title",'</xsl:text> + <xsl:apply-templates select="$prev" mode="title.ref"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("next_title",'</xsl:text> + <xsl:apply-templates select="$next" mode="title.ref"/> + <xsl:text>');
</xsl:text> + + <!-- Class Meta Variables --> + <xsl:variable name="class.title"> + <xsl:value-of select="$node/classmeta/classtitle"/> + </xsl:variable> + + <xsl:text>$tpl->define("class_title",'</xsl:text> + <xsl:value-of select="$node/classmeta/classtitle"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_parent",'</xsl:text> + <xsl:value-of select="$node/classmeta/classparent"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> + <xsl:apply-templates select="$node/classmeta/shortdesc"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_desc",'</xsl:text> + <xsl:apply-templates select="$node/classmeta/desc"/> + <xsl:text>');
</xsl:text> + + + <!-- Constructor information --> + + <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> + <xsl:apply-templates select="$node/constructor/funcsynopsis"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> + <xsl:apply-templates select="$node/constructor/shortdesc"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("constructor_desc",'</xsl:text> + <xsl:apply-templates select="$node/constructor/desc"/> + <xsl:text>');
</xsl:text> + + + <!-- Methods Information --> + <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" 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> + + + <!-- Attribuites Information --> + <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" select="./attributename"/> + <xsl:with-param name="shortdesc" select="./shortdesc"/> + <xsl:with-param name="desc" select="./desc"/> + </xsl:call-template> + </xsl:for-each> + + + <!-- Signals Information --> + + <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" 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: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", $key); + $tpl->define("METHOD_FUNCSYNOPSIS", $val['funcsynopsis']); + $tpl->define("METHOD_DESC", $val['desc']); + $tpl->define("METHOD_SHORTDESC", $val['shortdesc']); + $tpl->parse("METHODS","methods_tpl",1); + $tpl->parse("METHODS_SUMMARY","methods_summary_tpl",1); + } + } + + if($signals) { + while(list($key,$val) = each($signals)) { + $tpl->define("SIGNAL_NAME", $key); + $tpl->define("SIGNAL_FIREDWHEN", $val['firedwhen']); + $tpl->define("SIGNAL_DESC", $val['desc']); + $tpl->define("SIGNAL_SHORTDESC", $val['shortdesc']); + $tpl->parse("SIGNALS","signals_tpl",1); + $tpl->parse("SIGNALS_SUMMARY","signals_summary_tpl",1); + } + } + + if($attributes) { + while(list($key,$val) = each($attributes)) { + $tpl->define("ATTRIBUTE_NAME", $key); + $tpl->define("ATTRIBUTE_DESC", $val['desc']); + $tpl->define("ATTRIBUTE_SHORTDESC", $val['shortdesc']); + $tpl->parse("ATTRIBUTES","attributes_tpl",1); + $tpl->parse("ATTRIBUTES_SUMMARY","attributes_summary_tpl",1); + } + } + + $tpl->parse("classentry_out","classentry_tpl");
 + $classentry_html = $tpl->output("classentry_out");
 + $fp = fopen($filename,"w");
 + fwrite($fp, $classentry_html);
 + fclose($fp);

 + </xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-methods-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="funcsynopsis"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + <xsl:param name="function.name"/> + + <!-- Escape any " --> + <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: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: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:apply-templates select="$desc"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-attribute-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="attribute.name"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + + <!-- Escape any " --> + <xsl:variable name="attribute.name.escaped" select="translate($attribute.name, '"', '\"')"/> + <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> + <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> + + <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:value-of select="$attribute.name.escaped"/> + <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:value-of select="$shortdesc.escaped"/> + <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:value-of select="$desc.escaped"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-signal-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="signal.name"/> + <xsl:param name="firedwhen"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + + <!-- Escape any " --> + <xsl:variable name="signal.name.escaped" select="translate($signal.name, '"', '\"')"/> + <xsl:variable name="firedwhen.escaped" select="translate($firedwhen, '"', '\"')"/> + <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> + <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> + + <xsl:text>$signals[</xsl:text> + <xsl:value-of select="$signal.name.escaped"/> + <xsl:text>][name</xsl:text> + <xsl:text>] = '</xsl:text> + <xsl:value-of select="$signal.name.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$firedwhen.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$shortdesc.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$desc.escaped"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<!--================================================================--> + <!-- ==================================================================== --> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.23 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.24 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.23 Fri Apr 13 11:03:21 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Sat Apr 14 03:37:08 2001 @@ -1,422 +1,6 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<!--================================================================--> - - <!-- These are for outputting the intermediate .php files - which the html is derived from --> - <xsl:template match="classentry"> - <xsl:text>This should have been overwritten, please </xsl:text> - <xsl:text>run the HTML generation script</xsl:text> - <xsl:call-template name="handle.php.classentry"> - <xsl:with-param name="classentry" select="."/> - </xsl:call-template> - </xsl:template> - - <xsl:template name="handle.php.classentry"> - <xsl:param name="classentry"/> - <xsl:call-template name="process-php-chunk-element"> - <xsl:with-param name="node" select="$classentry"/> - </xsl:call-template> - </xsl:template> - - <xsl:template name="process-php-chunk-element"> - <xsl:param name="node"/> - - <xsl:variable name="prev" - select="(preceding::book[1] - |preceding::preface[1] - |preceding::chapter[1] - |preceding::appendix[1] - |preceding::part[1] - |preceding::classset[1] - |preceding::classentry[1] - |preceding::reference[1] - |preceding::refentry[1] - |preceding::colophon[1] - |preceding::sect1[name(preceding-sibling::*[1]) = 'sect1'][1] - |preceding::section[name(preceding-sibling::*[1]) = 'section' - and name(parent::*) != 'section'][1] - |preceding::article[1] - |preceding::bibliography[1] - |preceding::glossary[1] - |preceding::index[1] - |preceding::setindex[1] - |ancestor::set - |ancestor::book[1] - |ancestor::preface[1] - |ancestor::chapter[1] - |ancestor::appendix[1] - |ancestor::part[1] - |ancestor::reference[1] - |ancestor::classset[1] - |ancestor::article[1])[last()]"/> - <xsl:variable name="next" - select="(following::book[1] - |following::preface[1] - |following::chapter[1] - |following::appendix[1] - |following::part[1] - |following::classset[1] - |following::classentry[1] - |following::reference[1] - |following::refentry[1] - |following::colophon[1] - |following::sect1[1] - |following::section[name(parent::*) != 'section'][1] - |following::bibliography[1] - |following::glossary[1] - |following::index[1] - |following::article[1] - |following::setindex[1] - |descendant::book[1] - |descendant::preface[1] - |descendant::chapter[1] - |descendant::appendix[1] - |descendant::article[1] - |descendant::bibliography[1] - |descendant::glossary[1] - |descendant::index[1] - |descendant::colophon[1] - |descendant::setindex[1] - |descendant::part[1] - |descendant::classset[1] - |descendant::classentry[1] - |descendant::reference[1] - |descendant::refentry[1] - |descendant::sect1[2] - |descendant::section[name(parent::*) != 'section'][2])[1]"/> - <xsl:variable name="ischunk"> - <xsl:call-template name="chunk"/> - </xsl:variable> - - <xsl:variable name="chunkfn"> - <xsl:if test="$ischunk='1'"> - <xsl:apply-templates mode="chunk-filename" select="$node"/> - </xsl:if> - </xsl:variable> - - <xsl:variable name="filename"> - <xsl:call-template name="make-relative-filename"> - <xsl:with-param name="base.dir" select="$base.dir"/> - <xsl:with-param name="base.name" select="$chunkfn"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="php-filename"> - <xsl:value-of select="$filename"/> - <xsl:text>.php</xsl:text> - </xsl:variable> - - <xsl:message> - <xsl:text>Writing </xsl:text> - <xsl:value-of select="$php-filename"/> - <xsl:text> for </xsl:text> - <xsl:value-of select="name(.)"/> - </xsl:message> - - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename" select="$php-filename"/> - <xsl:with-param name="content"> - <xsl:call-template name="classentry-php-content"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="node" select="$node"/> - </xsl:call-template> - </xsl:with-param> - </xsl:call-template> - - </xsl:template> - - - <xsl:template name="classentry-php-content"> - <xsl:param name="prev"/> - <xsl:param name="next"/> - <xsl:param name="node"/> - - <xsl:text>

</xsl:text> - <xsl:text>/* -*- This file is automagically created
</xsl:text> - <xsl:text> Keep your grubby little fingers out
</xsl:text> - <xsl:text> and modify the stylesheets instead. -*- */
</xsl:text> - <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");
 - $tpl->addtemplate("signals_tpl","classsignals.tpl");
 - $tpl->addtemplate("attributes_tpl","classattributes.tpl");
 - $tpl->addtemplate("methods_summary_tpl","classmethods_summary.tpl");
 - $tpl->addtemplate("signals_summary_tpl","classsignals_summary.tpl");
 - $tpl->addtemplate("attributes_summary_tpl","classattributes_summary.tpl");
 - $filename = ereg_replace(".php","", __FILE__ ); - </xsl:text> - - <!-- Page Variables --> - - <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:text>');
</xsl:text> - - <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:text>');
</xsl:text> - - <xsl:text>$tpl->define("prev_title",'</xsl:text> - <xsl:apply-templates select="$prev" mode="title.ref"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("next_title",'</xsl:text> - <xsl:apply-templates select="$next" mode="title.ref"/> - <xsl:text>');
</xsl:text> - - <!-- Class Meta Variables --> - <xsl:variable name="class.title"> - <xsl:value-of select="$node/classmeta/classtitle"/> - </xsl:variable> - - <xsl:text>$tpl->define("class_title",'</xsl:text> - <xsl:value-of select="$node/classmeta/classtitle"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_parent",'</xsl:text> - <xsl:value-of select="$node/classmeta/classparent"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/shortdesc"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_desc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/desc"/> - <xsl:text>');
</xsl:text> - - - <!-- Constructor information --> - - <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> - <xsl:apply-templates select="$node/constructor/funcsynopsis"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/shortdesc"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("constructor_desc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/desc"/> - <xsl:text>');
</xsl:text> - - - <!-- Methods Information --> - <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" 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> - - - <!-- Attribuites Information --> - <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" select="./attributename"/> - <xsl:with-param name="shortdesc" select="./shortdesc"/> - <xsl:with-param name="desc" select="./desc"/> - </xsl:call-template> - </xsl:for-each> - - - <!-- Signals Information --> - - <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" 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: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", $key); - $tpl->define("METHOD_FUNCSYNOPSIS", $val['funcsynopsis']); - $tpl->define("METHOD_DESC", $val['desc']); - $tpl->define("METHOD_SHORTDESC", $val['shortdesc']); - $tpl->parse("METHODS","methods_tpl",1); - $tpl->parse("METHODS_SUMMARY","methods_summary_tpl",1); - } - } - - if($signals) { - while(list($key,$val) = each($signals)) { - $tpl->define("SIGNAL_NAME", $key); - $tpl->define("SIGNAL_FIREDWHEN", $val['firedwhen']); - $tpl->define("SIGNAL_DESC", $val['desc']); - $tpl->define("SIGNAL_SHORTDESC", $val['shortdesc']); - $tpl->parse("SIGNALS","signals_tpl",1); - $tpl->parse("SIGNALS_SUMMARY","signals_summary_tpl",1); - } - } - - if($attributes) { - while(list($key,$val) = each($attributes)) { - $tpl->define("ATTRIBUTE_NAME", $key); - $tpl->define("ATTRIBUTE_DESC", $val['desc']); - $tpl->define("ATTRIBUTE_SHORTDESC", $val['shortdesc']); - $tpl->parse("ATTRIBUTES","attributes_tpl",1); - $tpl->parse("ATTRIBUTES_SUMMARY","attributes_summary_tpl",1); - } - } - - $tpl->parse("classentry_out","classentry_tpl");
 - $classentry_html = $tpl->output("classentry_out");
 - $fp = fopen($filename,"w");
 - fwrite($fp, $classentry_html);
 - fclose($fp);

 - </xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-methods-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="funcsynopsis"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - <xsl:param name="function.name"/> - - <!-- Escape any " --> - <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: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: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:apply-templates select="$desc"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-attribute-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="attribute.name"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - - <!-- Escape any " --> - <xsl:variable name="attribute.name.escaped" select="translate($attribute.name, '"', '\"')"/> - <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> - <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> - - <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:value-of select="$attribute.name.escaped"/> - <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:value-of select="$shortdesc.escaped"/> - <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:value-of select="$desc.escaped"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-signal-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="signal.name"/> - <xsl:param name="firedwhen"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - - <!-- Escape any " --> - <xsl:variable name="signal.name.escaped" select="translate($signal.name, '"', '\"')"/> - <xsl:variable name="firedwhen.escaped" select="translate($firedwhen, '"', '\"')"/> - <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> - <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name.escaped"/> - <xsl:text>][name</xsl:text> - <xsl:text>] = '</xsl:text> - <xsl:value-of select="$signal.name.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$firedwhen.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$shortdesc.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$desc.escaped"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<!--================================================================--> <xsl:template match="classsetmeta" />
Index: php-gtk/docs/configure.in diff -u php-gtk/docs/configure.in:1.10 php-gtk/docs/configure.in:1.11 --- php-gtk/docs/configure.in:1.10 Sat Apr 14 03:04:37 2001 +++ php-gtk/docs/configure.in Sat Apr 14 03:37:07 2001 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.10 2001/04/14 10:04:37 jmoore Exp $ +dnl $Id: configure.in,v 1.11 2001/04/14 10:37:07 jmoore Exp $ AC_INIT(global.ent) @@ -28,32 +28,24 @@ do if test -d "$dir"; then if test "$dir" = "stylesheets/xsl/docbook"; then - DOCBOOKXSL_BIGHTML="docbook/html/docbook.xsl" - DOCBOOKXSL_HTML="docbook/html/chunk.xsl" - DOCBOOKXSL_HTMLHELP="docbook/contrib/htmlhelp/htmlhelp.xsl" - DOCBOOKXSL_PRINT="docbook/fo/docbook.xsl" + DOCBOOKXSL_HTML="docbook/html/docbook.xsl" + DOCBOOKXSL_CHUNK="docbook/html/chunk.xsl" else - DOCBOOKXSL_BIGHTML="$dir/html/docbook.xsl" - DOCBOOKXSL_HTML="$dir/html/chunk.xsl" - DOCBOOKXSL_HTMLHELP="$dir/contrib/htmlhelp/htmlhelp.xsl" - DOCBOOKXSL_PRINT="$dir/fo/docbook.xsl" + DOCBOOKXSL_HTML="$dir/html/docbook.xsl" + DOCBOOKXSL_CHUNK="$dir/html/chunk.xsl" fi AC_MSG_RESULT(in $dir) break fi done ]) -if test -z "$DOCBOOKXSL_BIGHTML"; then - DOCBOOKXSL_BIGHTML="there-is-not-default-yet" +if test -z "$DOCBOOKXSL_HTML"; then + DOCBOOKXSL_CHUNK="there-is-not-default-yet" DOCBOOKXSL_HTML="there-is-not-default-yet" - DOCBOOKXSL_HTMLHELP="there-is-not-default-yet" - DOCBOOKXSL_PRINT="there-is-not-default-yet" AC_MSG_RESULT(defaulting) fi -AC_SUBST(DOCBOOKXSL_BIGHTML) +AC_SUBST(DOCBOOKXSL_CHUNK) AC_SUBST(DOCBOOKXSL_HTML) -AC_SUBST(DOCBOOKXSL_HTMLHELP) -AC_SUBST(DOCBOOKXSL_PRINT) PHP_GTK_DOC_BUILD_DATE=`date` AC_SUBST(PHP_GTK_DOC_BUILD_DATE) Index: php-gtk/docs/stylesheets/xsl/chunk.xsl.in diff -u php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.1 php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.2 --- php-gtk/docs/stylesheets/xsl/chunk.xsl.in:1.1 Fri Apr 13 12:28:21 2001 +++ php-gtk/docs/stylesheets/xsl/chunk.xsl.in Sat Apr 14 03:37:08 2001 @@ -2,14 +2,14 @@ HTML specific stylesheet - $Id: chunk.xsl.in,v 1.1 2001/04/13 19:28:21 jmoore Exp $ + $Id: chunk.xsl.in,v 1.2 2001/04/14 10:37:08 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwlash.com/xsl/documentation/1.0" version="1.0"> -<xsl:import href="@DOCBOOKXSL_HTML@"/> +<xsl:import href="@DOCBOOKXSL_CHUNK@"/> <xsl:include href="html/chunk-common.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> Index: php-gtk/docs/stylesheets/xsl/html.xsl.in diff -u php-gtk/docs/stylesheets/xsl/html.xsl.in:1.3 php-gtk/docs/stylesheets/xsl/html.xsl.in:1.4 --- php-gtk/docs/stylesheets/xsl/html.xsl.in:1.3 Sun Mar 18 11:40:16 2001 +++ php-gtk/docs/stylesheets/xsl/html.xsl.in Sat Apr 14 03:37:08 2001 @@ -2,7 +2,7 @@ HTML specific stylesheet - $Id: html.xsl.in,v 1.3 2001/03/18 19:40:16 jmoore Exp $ + $Id: html.xsl.in,v 1.4 2001/04/14 10:37:08 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -10,7 +10,7 @@ version="1.0"> <xsl:import href="@DOCBOOKXSL_HTML@"/> -<xsl:include href="html/chunk-common.xsl" /> +<xsl:include href="html/html.xsl" /> <xsl:include href="common.xsl" /> <xsl:include href="html-common.xsl" /> @@ -23,7 +23,7 @@ --> <xsl:param name="toc.section.depth" doc:type="integer" - doc:min="1" doc:max="2" /> + doc:min="1" doc:max="5" /> <xsl:param name="generate.component.toc" select="1" /> <xsl:param name="generate.division.toc" select="1" /> <xsl:param name="default.table.width" select="100" /> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.5 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.6 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.5 Fri Apr 13 11:03:21 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Sat Apr 14 03:37:08 2001 @@ -248,9 +248,425 @@ <!-- ==================================================================== --> -<xsl:template match="classset|classentry"> +<xsl:template match="classset"> <xsl:call-template name="process-chunk-element"/> </xsl:template> + +<!--================================================================--> + + <!-- These are for outputting the intermediate .php files + which the html is derived from --> + <xsl:template match="classentry"> + <xsl:call-template name="handle.php.classentry"> + <xsl:with-param name="classentry" select="."/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="handle.php.classentry"> + <xsl:param name="classentry"/> + <xsl:call-template name="process-php-chunk-element"> + <xsl:with-param name="node" select="$classentry"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="process-php-chunk-element"> + <xsl:param name="node"/> + + <xsl:variable name="prev" + select="(preceding::book[1] + |preceding::preface[1] + |preceding::chapter[1] + |preceding::appendix[1] + |preceding::part[1] + |preceding::classset[1] + |preceding::classentry[1] + |preceding::reference[1] + |preceding::refentry[1] + |preceding::colophon[1] + |preceding::sect1[name(preceding-sibling::*[1]) = 'sect1'][1] + |preceding::section[name(preceding-sibling::*[1]) = 'section' + and name(parent::*) != 'section'][1] + |preceding::article[1] + |preceding::bibliography[1] + |preceding::glossary[1] + |preceding::index[1] + |preceding::setindex[1] + |ancestor::set + |ancestor::book[1] + |ancestor::preface[1] + |ancestor::chapter[1] + |ancestor::appendix[1] + |ancestor::part[1] + |ancestor::reference[1] + |ancestor::classset[1] + |ancestor::article[1])[last()]"/> + <xsl:variable name="next" + select="(following::book[1] + |following::preface[1] + |following::chapter[1] + |following::appendix[1] + |following::part[1] + |following::classset[1] + |following::classentry[1] + |following::reference[1] + |following::refentry[1] + |following::colophon[1] + |following::sect1[1] + |following::section[name(parent::*) != 'section'][1] + |following::bibliography[1] + |following::glossary[1] + |following::index[1] + |following::article[1] + |following::setindex[1] + |descendant::book[1] + |descendant::preface[1] + |descendant::chapter[1] + |descendant::appendix[1] + |descendant::article[1] + |descendant::bibliography[1] + |descendant::glossary[1] + |descendant::index[1] + |descendant::colophon[1] + |descendant::setindex[1] + |descendant::part[1] + |descendant::classset[1] + |descendant::classentry[1] + |descendant::reference[1] + |descendant::refentry[1] + |descendant::sect1[2] + |descendant::section[name(parent::*) != 'section'][2])[1]"/> + <xsl:variable name="ischunk"> + <xsl:call-template name="chunk"/> + </xsl:variable> + + <xsl:variable name="chunkfn"> + <xsl:if test="$ischunk='1'"> + <xsl:apply-templates mode="chunk-filename" select="$node"/> + </xsl:if> + </xsl:variable> + + <xsl:variable name="filename"> + <xsl:call-template name="make-relative-filename"> + <xsl:with-param name="base.dir" select="$base.dir"/> + <xsl:with-param name="base.name" select="$chunkfn"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="php-filename"> + <xsl:value-of select="$filename"/> + <xsl:text>.php</xsl:text> + </xsl:variable> + + <xsl:message> + <xsl:text>Writing </xsl:text> + <xsl:value-of select="$php-filename"/> + <xsl:text> for </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> + + <xsl:call-template name="write.chunk"> + <xsl:with-param name="filename" select="$php-filename"/> + <xsl:with-param name="content"> + <xsl:call-template name="classentry-php-content"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="node" select="$node"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + + </xsl:template> + + + <xsl:template name="classentry-php-content"> + <xsl:param name="prev"/> + <xsl:param name="next"/> + <xsl:param name="node"/> + + <xsl:text>

</xsl:text> + <xsl:text>/* -*- This file is automagically created
</xsl:text> + <xsl:text> Keep your grubby little fingers out
</xsl:text> + <xsl:text> and modify the stylesheets instead. -*- */
</xsl:text> + <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");
 + $tpl->addtemplate("signals_tpl","classsignals.tpl");
 + $tpl->addtemplate("attributes_tpl","classattributes.tpl");
 + $tpl->addtemplate("methods_summary_tpl","classmethods_summary.tpl");
 + $tpl->addtemplate("signals_summary_tpl","classsignals_summary.tpl");
 + $tpl->addtemplate("attributes_summary_tpl","classattributes_summary.tpl");
 + $filename = ereg_replace(".php","", __FILE__ ); + </xsl:text> + + <!-- Page Variables --> + + <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:text>');
</xsl:text> + + <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:text>');
</xsl:text> + + <xsl:text>$tpl->define("prev_title",'</xsl:text> + <xsl:apply-templates select="$prev" mode="title.ref"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("next_title",'</xsl:text> + <xsl:apply-templates select="$next" mode="title.ref"/> + <xsl:text>');
</xsl:text> + + <!-- Class Meta Variables --> + <xsl:variable name="class.title"> + <xsl:value-of select="$node/classmeta/classtitle"/> + </xsl:variable> + + <xsl:text>$tpl->define("class_title",'</xsl:text> + <xsl:value-of select="$node/classmeta/classtitle"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_parent",'</xsl:text> + <xsl:value-of select="$node/classmeta/classparent"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> + <xsl:apply-templates select="$node/classmeta/shortdesc"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("class_desc",'</xsl:text> + <xsl:apply-templates select="$node/classmeta/desc"/> + <xsl:text>');
</xsl:text> + + + <!-- Constructor information --> + + <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> + <xsl:apply-templates select="$node/constructor/funcsynopsis"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> + <xsl:apply-templates select="$node/constructor/shortdesc"/> + <xsl:text>');
</xsl:text> + + <xsl:text>$tpl->define("constructor_desc",'</xsl:text> + <xsl:apply-templates select="$node/constructor/desc"/> + <xsl:text>');
</xsl:text> + + + <!-- Methods Information --> + <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" 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> + + + <!-- Attribuites Information --> + <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" select="./attributename"/> + <xsl:with-param name="shortdesc" select="./shortdesc"/> + <xsl:with-param name="desc" select="./desc"/> + </xsl:call-template> + </xsl:for-each> + + + <!-- Signals Information --> + + <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" 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: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", $key); + $tpl->define("METHOD_FUNCSYNOPSIS", $val['funcsynopsis']); + $tpl->define("METHOD_DESC", $val['desc']); + $tpl->define("METHOD_SHORTDESC", $val['shortdesc']); + $tpl->parse("METHODS","methods_tpl",1); + $tpl->parse("METHODS_SUMMARY","methods_summary_tpl",1); + } + } + + if($signals) { + while(list($key,$val) = each($signals)) { + $tpl->define("SIGNAL_NAME", $key); + $tpl->define("SIGNAL_FIREDWHEN", $val['firedwhen']); + $tpl->define("SIGNAL_DESC", $val['desc']); + $tpl->define("SIGNAL_SHORTDESC", $val['shortdesc']); + $tpl->parse("SIGNALS","signals_tpl",1); + $tpl->parse("SIGNALS_SUMMARY","signals_summary_tpl",1); + } + } + + if($attributes) { + while(list($key,$val) = each($attributes)) { + $tpl->define("ATTRIBUTE_NAME", $key); + $tpl->define("ATTRIBUTE_DESC", $val['desc']); + $tpl->define("ATTRIBUTE_SHORTDESC", $val['shortdesc']); + $tpl->parse("ATTRIBUTES","attributes_tpl",1); + $tpl->parse("ATTRIBUTES_SUMMARY","attributes_summary_tpl",1); + } + } + + $tpl->parse("classentry_out","classentry_tpl");
 + $classentry_html = $tpl->output("classentry_out");
 + $fp = fopen($filename,"w");
 + fwrite($fp, $classentry_html);
 + fclose($fp);

 + </xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-methods-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="funcsynopsis"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + <xsl:param name="function.name"/> + + <!-- Escape any " --> + <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: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: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:apply-templates select="$desc"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-attribute-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="attribute.name"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + + <!-- Escape any " --> + <xsl:variable name="attribute.name.escaped" select="translate($attribute.name, '"', '\"')"/> + <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> + <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> + + <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:value-of select="$attribute.name.escaped"/> + <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:value-of select="$shortdesc.escaped"/> + <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:value-of select="$desc.escaped"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<xsl:template name="add-element-to-signal-array"> + <xsl:param name="class.title" /> + <xsl:param name="counter" /> + <xsl:param name="signal.name"/> + <xsl:param name="firedwhen"/> + <xsl:param name="shortdesc"/> + <xsl:param name="desc"/> + + <!-- Escape any " --> + <xsl:variable name="signal.name.escaped" select="translate($signal.name, '"', '\"')"/> + <xsl:variable name="firedwhen.escaped" select="translate($firedwhen, '"', '\"')"/> + <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> + <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> + + <xsl:text>$signals[</xsl:text> + <xsl:value-of select="$signal.name.escaped"/> + <xsl:text>][name</xsl:text> + <xsl:text>] = '</xsl:text> + <xsl:value-of select="$signal.name.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$firedwhen.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$shortdesc.escaped"/> + <xsl:text>';
</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>] = '</xsl:text> + <xsl:value-of select="$desc.escaped"/> + <xsl:text>';
</xsl:text> + +</xsl:template> + +<!--================================================================--> + <!-- ==================================================================== --> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.23 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.24 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.23 Fri Apr 13 11:03:21 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Sat Apr 14 03:37:08 2001 @@ -1,422 +1,6 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<!--================================================================--> - - <!-- These are for outputting the intermediate .php files - which the html is derived from --> - <xsl:template match="classentry"> - <xsl:text>This should have been overwritten, please </xsl:text> - <xsl:text>run the HTML generation script</xsl:text> - <xsl:call-template name="handle.php.classentry"> - <xsl:with-param name="classentry" select="."/> - </xsl:call-template> - </xsl:template> - - <xsl:template name="handle.php.classentry"> - <xsl:param name="classentry"/> - <xsl:call-template name="process-php-chunk-element"> - <xsl:with-param name="node" select="$classentry"/> - </xsl:call-template> - </xsl:template> - - <xsl:template name="process-php-chunk-element"> - <xsl:param name="node"/> - - <xsl:variable name="prev" - select="(preceding::book[1] - |preceding::preface[1] - |preceding::chapter[1] - |preceding::appendix[1] - |preceding::part[1] - |preceding::classset[1] - |preceding::classentry[1] - |preceding::reference[1] - |preceding::refentry[1] - |preceding::colophon[1] - |preceding::sect1[name(preceding-sibling::*[1]) = 'sect1'][1] - |preceding::section[name(preceding-sibling::*[1]) = 'section' - and name(parent::*) != 'section'][1] - |preceding::article[1] - |preceding::bibliography[1] - |preceding::glossary[1] - |preceding::index[1] - |preceding::setindex[1] - |ancestor::set - |ancestor::book[1] - |ancestor::preface[1] - |ancestor::chapter[1] - |ancestor::appendix[1] - |ancestor::part[1] - |ancestor::reference[1] - |ancestor::classset[1] - |ancestor::article[1])[last()]"/> - <xsl:variable name="next" - select="(following::book[1] - |following::preface[1] - |following::chapter[1] - |following::appendix[1] - |following::part[1] - |following::classset[1] - |following::classentry[1] - |following::reference[1] - |following::refentry[1] - |following::colophon[1] - |following::sect1[1] - |following::section[name(parent::*) != 'section'][1] - |following::bibliography[1] - |following::glossary[1] - |following::index[1] - |following::article[1] - |following::setindex[1] - |descendant::book[1] - |descendant::preface[1] - |descendant::chapter[1] - |descendant::appendix[1] - |descendant::article[1] - |descendant::bibliography[1] - |descendant::glossary[1] - |descendant::index[1] - |descendant::colophon[1] - |descendant::setindex[1] - |descendant::part[1] - |descendant::classset[1] - |descendant::classentry[1] - |descendant::reference[1] - |descendant::refentry[1] - |descendant::sect1[2] - |descendant::section[name(parent::*) != 'section'][2])[1]"/> - <xsl:variable name="ischunk"> - <xsl:call-template name="chunk"/> - </xsl:variable> - - <xsl:variable name="chunkfn"> - <xsl:if test="$ischunk='1'"> - <xsl:apply-templates mode="chunk-filename" select="$node"/> - </xsl:if> - </xsl:variable> - - <xsl:variable name="filename"> - <xsl:call-template name="make-relative-filename"> - <xsl:with-param name="base.dir" select="$base.dir"/> - <xsl:with-param name="base.name" select="$chunkfn"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="php-filename"> - <xsl:value-of select="$filename"/> - <xsl:text>.php</xsl:text> - </xsl:variable> - - <xsl:message> - <xsl:text>Writing </xsl:text> - <xsl:value-of select="$php-filename"/> - <xsl:text> for </xsl:text> - <xsl:value-of select="name(.)"/> - </xsl:message> - - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename" select="$php-filename"/> - <xsl:with-param name="content"> - <xsl:call-template name="classentry-php-content"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="node" select="$node"/> - </xsl:call-template> - </xsl:with-param> - </xsl:call-template> - - </xsl:template> - - - <xsl:template name="classentry-php-content"> - <xsl:param name="prev"/> - <xsl:param name="next"/> - <xsl:param name="node"/> - - <xsl:text>

</xsl:text> - <xsl:text>/* -*- This file is automagically created
</xsl:text> - <xsl:text> Keep your grubby little fingers out
</xsl:text> - <xsl:text> and modify the stylesheets instead. -*- */
</xsl:text> - <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");
 - $tpl->addtemplate("signals_tpl","classsignals.tpl");
 - $tpl->addtemplate("attributes_tpl","classattributes.tpl");
 - $tpl->addtemplate("methods_summary_tpl","classmethods_summary.tpl");
 - $tpl->addtemplate("signals_summary_tpl","classsignals_summary.tpl");
 - $tpl->addtemplate("attributes_summary_tpl","classattributes_summary.tpl");
 - $filename = ereg_replace(".php","", __FILE__ ); - </xsl:text> - - <!-- Page Variables --> - - <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:text>');
</xsl:text> - - <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:text>');
</xsl:text> - - <xsl:text>$tpl->define("prev_title",'</xsl:text> - <xsl:apply-templates select="$prev" mode="title.ref"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("next_title",'</xsl:text> - <xsl:apply-templates select="$next" mode="title.ref"/> - <xsl:text>');
</xsl:text> - - <!-- Class Meta Variables --> - <xsl:variable name="class.title"> - <xsl:value-of select="$node/classmeta/classtitle"/> - </xsl:variable> - - <xsl:text>$tpl->define("class_title",'</xsl:text> - <xsl:value-of select="$node/classmeta/classtitle"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_parent",'</xsl:text> - <xsl:value-of select="$node/classmeta/classparent"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/shortdesc"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("class_desc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/desc"/> - <xsl:text>');
</xsl:text> - - - <!-- Constructor information --> - - <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> - <xsl:apply-templates select="$node/constructor/funcsynopsis"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/shortdesc"/> - <xsl:text>');
</xsl:text> - - <xsl:text>$tpl->define("constructor_desc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/desc"/> - <xsl:text>');
</xsl:text> - - - <!-- Methods Information --> - <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" 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> - - - <!-- Attribuites Information --> - <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" select="./attributename"/> - <xsl:with-param name="shortdesc" select="./shortdesc"/> - <xsl:with-param name="desc" select="./desc"/> - </xsl:call-template> - </xsl:for-each> - - - <!-- Signals Information --> - - <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" 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: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", $key); - $tpl->define("METHOD_FUNCSYNOPSIS", $val['funcsynopsis']); - $tpl->define("METHOD_DESC", $val['desc']); - $tpl->define("METHOD_SHORTDESC", $val['shortdesc']); - $tpl->parse("METHODS","methods_tpl",1); - $tpl->parse("METHODS_SUMMARY","methods_summary_tpl",1); - } - } - - if($signals) { - while(list($key,$val) = each($signals)) { - $tpl->define("SIGNAL_NAME", $key); - $tpl->define("SIGNAL_FIREDWHEN", $val['firedwhen']); - $tpl->define("SIGNAL_DESC", $val['desc']); - $tpl->define("SIGNAL_SHORTDESC", $val['shortdesc']); - $tpl->parse("SIGNALS","signals_tpl",1); - $tpl->parse("SIGNALS_SUMMARY","signals_summary_tpl",1); - } - } - - if($attributes) { - while(list($key,$val) = each($attributes)) { - $tpl->define("ATTRIBUTE_NAME", $key); - $tpl->define("ATTRIBUTE_DESC", $val['desc']); - $tpl->define("ATTRIBUTE_SHORTDESC", $val['shortdesc']); - $tpl->parse("ATTRIBUTES","attributes_tpl",1); - $tpl->parse("ATTRIBUTES_SUMMARY","attributes_summary_tpl",1); - } - } - - $tpl->parse("classentry_out","classentry_tpl");
 - $classentry_html = $tpl->output("classentry_out");
 - $fp = fopen($filename,"w");
 - fwrite($fp, $classentry_html);
 - fclose($fp);

 - </xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-methods-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="funcsynopsis"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - <xsl:param name="function.name"/> - - <!-- Escape any " --> - <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: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: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:apply-templates select="$desc"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-attribute-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="attribute.name"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - - <!-- Escape any " --> - <xsl:variable name="attribute.name.escaped" select="translate($attribute.name, '"', '\"')"/> - <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> - <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> - - <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:value-of select="$attribute.name.escaped"/> - <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:value-of select="$shortdesc.escaped"/> - <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:value-of select="$desc.escaped"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<xsl:template name="add-element-to-signal-array"> - <xsl:param name="class.title" /> - <xsl:param name="counter" /> - <xsl:param name="signal.name"/> - <xsl:param name="firedwhen"/> - <xsl:param name="shortdesc"/> - <xsl:param name="desc"/> - - <!-- Escape any " --> - <xsl:variable name="signal.name.escaped" select="translate($signal.name, '"', '\"')"/> - <xsl:variable name="firedwhen.escaped" select="translate($firedwhen, '"', '\"')"/> - <xsl:variable name="shortdesc.escaped" select="translate($shortdesc, '"', '\"')"/> - <xsl:variable name="desc.escaped" select="translate($desc, '"', '\"')"/> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name.escaped"/> - <xsl:text>][name</xsl:text> - <xsl:text>] = '</xsl:text> - <xsl:value-of select="$signal.name.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$firedwhen.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$shortdesc.escaped"/> - <xsl:text>';
</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>] = '</xsl:text> - <xsl:value-of select="$desc.escaped"/> - <xsl:text>';
</xsl:text> - -</xsl:template> - -<!--================================================================--> <xsl:template match="classsetmeta" />