cvs: php-gtk /docs Makefile.in configure.in makedocs.in /docs/en bookinfo.xml /docs/scripts TemplateParser.class /docs/stylesheets/xsl/html
chunk-common.xsl class.xsl label.xsl overrides.xsl title.xsl /docs/templates classattributes.tpl classattributes_summary.tpl classentry.tpl
classmethods.tpl classmethods_summary.tpl classsignals.tpl classsignals_summary.tpl

From: Date: Thu, 03 May 2001 11:42:55 +0000
Subject: cvs: php-gtk /docs Makefile.in configure.in makedocs.in /docs/en bookinfo.xml /docs/scripts TemplateParser.class /docs/stylesheets/xsl/html
chunk-common.xsl class.xsl label.xsl overrides.xsl title.xsl /docs/templates classattributes.tpl classattributes_summary.tpl classentry.tpl
classmethods.tpl classmethods_summary.tpl classsignals.tpl classsignals_summary.tpl
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1611@lists.php.net to get a copy of this message
jmoore Thu May 3 04:42:55 2001 EDT Removed files: /php-gtk/docs makedocs.in /php-gtk/docs/scripts TemplateParser.class /php-gtk/docs/templates classattributes.tpl classattributes_summary.tpl classentry.tpl classmethods.tpl classmethods_summary.tpl classsignals.tpl classsignals_summary.tpl Modified files: /php-gtk/docs Makefile.in configure.in /php-gtk/docs/en bookinfo.xml /php-gtk/docs/stylesheets/xsl/html chunk-common.xsl class.xsl label.xsl overrides.xsl title.xsl Log: - Functions now appear on their own pages. - No post processing by PHP anymore. - makedocs script is nolonger used, it is all done from make - added markus to manual authors - bigmanual.html now builds # - Anyproblems and shout.. it builds for me here.

Index: php-gtk/docs/Makefile.in diff -u php-gtk/docs/Makefile.in:1.9 php-gtk/docs/Makefile.in:1.10 --- php-gtk/docs/Makefile.in:1.9 Sun Apr 22 10:23:11 2001 +++ php-gtk/docs/Makefile.in Thu May 3 04:42:49 2001 @@ -17,7 +17,7 @@ # +----------------------------------------------------------------------+ # -# $Id: Makefile.in,v 1.9 2001/04/22 17:23:11 jmoore Exp $ +# $Id: Makefile.in,v 1.10 2001/05/03 11:42:49 jmoore Exp $ # VPATH=@srcdir@ @@ -80,7 +80,8 @@ gzip -9 -c $< > $@ html/index.html: manual.xml $(CHUNK_DEPS) - sh $(srcdir)/makedocs + test -d html || mkdir html + $(SAXON) manual.xml $(stylesheet_dir)/chunk.xsl manual.txt: bigmanual.html lynx -nolist -dump file:`pwd`/bigmanual.html > manual.txt @@ -110,6 +111,6 @@ rm -f chapters.ent distclean: clean - rm -f Makefile manual.xml configure makedocs + rm -f Makefile manual.xml configure rm -f config.cache config.status version.ent cd stylesheets/xsl; rm -f html.xsl common.xsl chunk.xsl Index: php-gtk/docs/configure.in diff -u php-gtk/docs/configure.in:1.14 php-gtk/docs/configure.in:1.15 --- php-gtk/docs/configure.in:1.14 Tue May 1 21:23:01 2001 +++ php-gtk/docs/configure.in Thu May 3 04:42:49 2001 @@ -1,10 +1,8 @@ -dnl $Id: configure.in,v 1.14 2001/05/02 04:23:01 andrei Exp $ +dnl $Id: configure.in,v 1.15 2001/05/03 11:42:49 jmoore Exp $ AC_INIT(global.ent) dnl used by checkdoc -AC_PATH_PROG(PERL_PATH, perl) -AC_PATH_PROG(PHP_PATH, php) AC_PATH_PROG(SAXON, saxon, no) DOCBOOK_DOCTYPE="-//Norman Walsh//DTD DocBk XML V1.4//EN" @@ -183,12 +181,10 @@ AC_SUBST(ENCODING) HTMLHELP_ENCODING=$ENCODING - AC_SUBST(HTMLHELP_ENCODING) AC_OUTPUT(\ Makefile \ -makedocs \ version.ent \ manual.xml \ stylesheets/xsl/html.xsl \ Index: php-gtk/docs/en/bookinfo.xml diff -u php-gtk/docs/en/bookinfo.xml:1.8 php-gtk/docs/en/bookinfo.xml:1.9 --- php-gtk/docs/en/bookinfo.xml:1.8 Mon Apr 30 19:59:05 2001 +++ php-gtk/docs/en/bookinfo.xml Thu May 3 04:42:51 2001 @@ -21,12 +21,17 @@ <author> <firstname>James</firstname><surname>Moore</surname> <authoremail>jmoore@php.net</authoremail> - <contrib>Manual Outline and Build Framework</contrib> + <contrib>Manual outline and build framework</contrib> </author> <author> <firstname>Steph</firstname><surname>Fox</surname> <authoremail>sfox@php.net</authoremail> - <contrib>Keeping the manual readable</contrib> + <contrib>Class outlines</contrib> + </author> + <author> + <firstname>Markus</firstname><surname>Fischer</surname> + <authoremail>mfischer@php.net</authoremail> + <contrib>Class outlines</contrib> </author> </authorgroup> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.8 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.9 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.8 Sun Apr 15 14:22:57 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Thu May 3 04:42:52 2001 @@ -39,6 +39,9 @@ <xsl:when test="name($node)='setindex'">1</xsl:when> <xsl:when test="name($node)='classset'">1</xsl:when> <xsl:when test="name($node)='classentry'">1</xsl:when> + <xsl:when test="name($node)='method'">1</xsl:when> + <xsl:when test="name($node)='attribute'">1</xsl:when> + <xsl:when test="name($node)='signal'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template> @@ -90,17 +93,17 @@ <xsl:value-of select="$html.ext"/> </xsl:when> - <xsl:when test="not($recursive) and name(.) = 'book'"> + <xsl:when test="not($recursive) and name(.) = 'book'"> <xsl:choose> - <xsl:when test="$root.filename"> - <xsl:value-of select="$root.filename" /> - </xsl:when> - <xsl:otherwise> - <xsl:text>error</xsl:text> - </xsl:otherwise> - </xsl:choose> - <xsl:value-of select="$html.ext"/> - </xsl:when> + <xsl:when test="$root.filename"> + <xsl:value-of select="$root.filename" /> + </xsl:when> + <xsl:otherwise> + <xsl:text>error</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:value-of select="$html.ext"/> + </xsl:when> <xsl:otherwise> <xsl:text>chunk-filename-error-</xsl:text> @@ -144,9 +147,12 @@ |preceding::chapter[1] |preceding::appendix[1] |preceding::part[1] + |preceding::method[1] + |preceding::signal[1] + |preceding::attribute[1] |preceding::classset[1] |preceding::classentry[1] - |preceding::reference[1] + |preceding::reference[1] |preceding::refentry[1] |preceding::colophon[1] |preceding::sect1[name(preceding-sibling::*[1]) = 'sect1'][1] @@ -164,7 +170,11 @@ |ancestor::appendix[1] |ancestor::part[1] |ancestor::reference[1] + |ancestor::method[1] + |ancestor::signal[1] + |ancestor::attribute[1] |ancestor::classset[1] + |ancestor::classentry[1] |ancestor::article[1])[last()]"/> <xsl:variable name="next" @@ -173,10 +183,13 @@ |following::chapter[1] |following::appendix[1] |following::part[1] + |following::method[1] + |following::signal[1] + |following::attribute[1] |following::classset[1] |following::classentry[1] - |following::reference[1] - |following::refentry[1] + |following::reference[1] + |following::refentry[1] |following::colophon[1] |following::sect1[1] |following::section[name(parent::*) != 'section'][1] @@ -196,6 +209,9 @@ |descendant::colophon[1] |descendant::setindex[1] |descendant::part[1] + |descendant::method[1] + |descendant::signal[1] + |descendant::attribute[1] |descendant::classset[1] |descendant::classentry[1] |descendant::reference[1] @@ -203,6 +219,21 @@ |descendant::sect1[2] |descendant::section[name(parent::*) != 'section'][2])[1]"/> + <xsl:variable name="up" + select="(parent::set[1] + |parent::book[1] + |parent::preface[1] + |parent::chapter[1] + |parent::appendix[1] + |parent::part[1] + |parent::reference[1] + |parent::method[1] + |parent::signal[1] + |parent::attribute[1] + |parent::classset[1] + |ancestor::classentry[1] + |parent::article[1])[last()]"/> + <xsl:variable name="ischunk"> <xsl:call-template name="chunk"/> </xsl:variable> @@ -241,6 +272,7 @@ <xsl:call-template name="chunk-element-content"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> </xsl:call-template> </xsl:with-param> </xsl:call-template> @@ -248,410 +280,260 @@ <!-- ==================================================================== --> -<xsl:template match="classset"> +<xsl:template match="classset|classentry|method|signal|attribute"> <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>&#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> - <xsl:text> and modify the stylesheets instead. -*- */&#xA;</xsl:text> - <xsl:text> - &#xA;&#xA; - require_once("../scripts/TemplateParser.class");&#xA; - $tpl = new TemplateParser("../templates/");&#xA; - $tpl->addtemplate("classentry_tpl","classentry.tpl");&#xA; - $tpl->addtemplate("methods_tpl","classmethods.tpl");&#xA; - $tpl->addtemplate("signals_tpl","classsignals.tpl");&#xA; - $tpl->addtemplate("attributes_tpl","classattributes.tpl");&#xA; - $tpl->addtemplate("methods_summary_tpl","classmethods_summary.tpl");&#xA; - $tpl->addtemplate("signals_summary_tpl","classsignals_summary.tpl");&#xA; - $tpl->addtemplate("attributes_summary_tpl","classattributes_summary.tpl");&#xA; - $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>');&#xA;</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>');&#xA;</xsl:text> - - <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: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>');&#xA;</xsl:text> - - <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:text>');&#xA;</xsl:text> - - <xsl:text>$tpl->define("class_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/shortdesc"/> - <xsl:text>');&#xA;</xsl:text> - - <xsl:text>$tpl->define("class_desc",'</xsl:text> - <xsl:apply-templates select="$node/classmeta/desc"/> - <xsl:text>');&#xA;</xsl:text> - - - <!-- Constructor information --> - - <xsl:text>$tpl->define("constructor_funcsynopsis",'</xsl:text> - <xsl:apply-templates select="$node/constructor/funcsynopsis"/> - <xsl:text>');&#xA;</xsl:text> - - <xsl:text>$tpl->define("constructor_shortdesc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/shortdesc"/> - <xsl:text>');&#xA;</xsl:text> - - <xsl:text>$tpl->define("constructor_desc",'</xsl:text> - <xsl:apply-templates select="$node/constructor/desc"/> - <xsl:text>');&#xA;</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> +<!-- ==================================================================== --> +<xsl:template name="html.head"> + <xsl:param name="prev" select="/foo"/> + <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> + <xsl:variable name="home" select="/*[1]"/> + + <head> + <xsl:call-template name="head.content"/> + <xsl:call-template name="user.head.content"/> + + <xsl:if test="$home"> + <link rel="home"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$home"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$home" mode="title.ref"> + <xsl:with-param name="text-only" select="'1'"/> + </xsl:apply-templates> + </xsl:attribute> + </link> + </xsl:if> - <!-- 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> + <xsl:if test="$up"> + <link rel="up"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$up"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$up" mode="title.ref"> + <xsl:with-param name="text-only" select="'1'"/> + </xsl:apply-templates> + </xsl:attribute> + </link> + </xsl:if> + <xsl:if test="$prev"> + <link rel="previous"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$prev"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$prev" mode="title.ref"> + <xsl:with-param name="text-only" select="'1'"/> + </xsl:apply-templates> + </xsl:attribute> + </link> + </xsl:if> - <!-- Signals Information --> + <xsl:if test="$next"> + <link rel="next"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$next"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$next" mode="title.ref"> + <xsl:with-param name="text-only" select="'1'"/> + </xsl:apply-templates> + </xsl:attribute> + </link> + </xsl:if> + </head> +</xsl:template> - <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:template name="chunk-element-content"> + <xsl:param name="prev"></xsl:param> + <xsl:param name="next"></xsl:param> + <xsl:param name="up" select="parent::*"></xsl:param> + <html> + <xsl:call-template name="html.head"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> </xsl:call-template> - </xsl:for-each> + <body xsl:use-attribute-sets="body.attrs"> + <xsl:call-template name="header.navigation"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> + </xsl:call-template> - <xsl:text>&#xA;</xsl:text> - <xsl:text> - if($methods) { - while(list($key,$val) = each($methods)) { - $tpl->define("METHOD_NAME", $val['name']); - $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", $val['name']); - $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", $val['name']); - $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");&#xA; - $classentry_html = $tpl->output("classentry_out");&#xA; - $fp = fopen($filename,"w");&#xA; - fwrite($fp, $classentry_html);&#xA; - fclose($fp);&#xA;&#xA; - </xsl:text> + <xsl:call-template name="user.header.content"/> -</xsl:template> + <xsl:apply-imports/> -<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"/> - - <xsl:text>$methods[</xsl:text> - <xsl:value-of select="$function.name"/> - <xsl:text>][name] = '</xsl:text> - <xsl:value-of select="$function.name"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$methods[</xsl:text> - <xsl:value-of select="$function.name"/> - <xsl:text>][funcsynopsis] = '</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>][shortdesc] = '</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:apply-templates select="$desc"/> - <xsl:text>';&#xA;</xsl:text> + <xsl:call-template name="user.footer.content"/> + <xsl:call-template name="footer.navigation"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> + </xsl:call-template> + </body> + </html> </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"/> - - <xsl:text>$attributes[</xsl:text> - <xsl:value-of select="$attribute.name"/> - <xsl:text>][name] = '</xsl:text> - <xsl:apply-templates select="$attribute.name"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$attributes[</xsl:text> - <xsl:value-of select="$attribute.name" /> - <xsl:text>][shortdesc] = '</xsl:text> - <xsl:apply-templates select="$shortdesc"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$attributes[</xsl:text> - <xsl:value-of select="$attribute.name" /> - <xsl:text>][desc] = '</xsl:text> - <xsl:apply-templates select="$desc"/> - <xsl:text>';&#xA;</xsl:text> - +<xsl:template name="header.navigation"> + <xsl:param name="prev" select="/foo"/> + <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> + <xsl:variable name="home" select="/*[1]"/> + + + <xsl:if test="$suppress.navigation = '0'"> + <div class="navheader"> + <table width="100%"> + <tr> + <th colspan="3" align="center"> + <xsl:apply-templates select="." mode="title.ref"/> + </th> + </tr> + <tr> + <td width="20%" align="left"> + <xsl:if test="count($prev)>0"> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$prev"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.prev"/> + </a> + </xsl:if> + <xsl:text>&#160;</xsl:text> + </td> + <th width="60%" align="center"> + <xsl:choose> + <xsl:when test="count($up) > 0 and $up != $home"> + <xsl:apply-templates select="$up" mode="title.ref"/> + </xsl:when> + <xsl:otherwise>&#160;</xsl:otherwise> + </xsl:choose> + </th> + <td width="20%" align="right"> + <xsl:text>&#160;</xsl:text> + <xsl:if test="count($next)>0"> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$next"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.next"/> + </a> + </xsl:if> + </td> + </tr> + </table> + <hr/> + </div> + </xsl:if> </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"/> - <xsl:param name="temp"/> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name"/> - <xsl:text>]['name'] = '</xsl:text> - <xsl:apply-templates select="$signal.name"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name" /> - <xsl:text>][</xsl:text> - <xsl:text>firedwhen</xsl:text> - <xsl:text>] = '</xsl:text> - <xsl:apply-templates select="$firedwhen"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name" /> - <xsl:text>][</xsl:text> - <xsl:text>shortdesc</xsl:text> - <xsl:text>] = '</xsl:text> - <xsl:apply-templates select="$shortdesc"/> - <xsl:text>';&#xA;</xsl:text> - - <xsl:text>$signals[</xsl:text> - <xsl:value-of select="$signal.name" /> - <xsl:text>][</xsl:text> - <xsl:text>desc</xsl:text> - <xsl:text>] = '</xsl:text> - <xsl:apply-templates select="$desc"/> - <xsl:text>';&#xA;</xsl:text> +<xsl:template name="footer.navigation"> + <xsl:param name="prev" select="/foo"/> + <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> + <xsl:variable name="home" select="/*[1]"/> + + <xsl:if test="$suppress.navigation = '0'"> + <div class="navfooter"> + <hr/> + <table width="100%"> + <tr> + <td width="40%" align="left"> + <xsl:if test="count($prev)>0"> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$prev"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.prev"/> + </a> + </xsl:if> + <xsl:text>&#160;</xsl:text> + </td> + <td width="20%" align="center"> + <xsl:choose> + <xsl:when test="$home != ."> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$home"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.home"/> + </a> + </xsl:when> + <xsl:otherwise>&#160;</xsl:otherwise> + </xsl:choose> + </td> + <td width="40%" align="right"> + <xsl:text>&#160;</xsl:text> + <xsl:if test="count($next)>0"> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$next"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.next"/> + </a> + </xsl:if> + </td> + </tr> + + <tr> + <td width="40%" align="left"> + <xsl:apply-templates select="$prev" mode="title.ref"/> + <xsl:text>&#160;</xsl:text> + </td> + <td width="20%" align="center"> + <xsl:choose> + <xsl:when test="count($up)>0"> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$up"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name="gentext.nav.up"/> + </a> + </xsl:when> + <xsl:otherwise>&#160;</xsl:otherwise> + </xsl:choose> + </td> + <td width="40%" align="right"> + <xsl:text>&#160;</xsl:text> + <xsl:apply-templates select="$next" mode="title.ref"/> + </td> + </tr> + </table> + </div> + </xsl:if> </xsl:template> -<!--================================================================--> - -<!-- ==================================================================== --> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/class.xsl diff -u php-gtk/docs/stylesheets/xsl/html/class.xsl:1.29 php-gtk/docs/stylesheets/xsl/html/class.xsl:1.30 --- php-gtk/docs/stylesheets/xsl/html/class.xsl:1.29 Mon Apr 23 12:36:01 2001 +++ php-gtk/docs/stylesheets/xsl/html/class.xsl Thu May 3 04:42:53 2001 @@ -1,7 +1,7 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - +<!--========================================================================--> <xsl:template match="classsetmeta" /> <xsl:template @@ -32,7 +32,7 @@ </div> </xsl:template> -<xsl:template match="classset" mode="make.part.toc"> + <xsl:template match="classset" mode="make.part.toc"> <xsl:call-template name="component.toc" /> </xsl:template> @@ -40,6 +40,8 @@ <xsl:number from="book" format="I." count="classset|part"/> </xsl:template> +<!--========================================================================--> + <xsl:template match="desc|shortdesc"> <xsl:apply-templates /> </xsl:template> @@ -48,8 +50,13 @@ <xsl:apply-templates /> </xsl:template> - <xsl:template match="classname"> + <xsl:template match="classtitle"> + <xsl:apply-templates /> + </xsl:template> + +<!--========================================================================--> + <xsl:template match="classname"> <xsl:variable name="classname"> <xsl:value-of select="."/> </xsl:variable> @@ -82,6 +89,8 @@ </xsl:choose> </xsl:template> +<!--========================================================================--> + <xsl:template match="function|constructor"> <xsl:variable name="funcname"> <xsl:value-of select="."/> @@ -115,6 +124,8 @@ </xsl:choose> </xsl:template> +<!--========================================================================--> + <xsl:template match="signalname"> <xsl:variable name="signame"> <xsl:value-of select="."/> @@ -148,6 +159,109 @@ </xsl:choose> </xsl:template> +<!--========================================================================--> + <xsl:attribute-set name="classset.titlepage.recto.style" /> + +<!--========================================================================--> + + <xsl:template match="classentry"> + <div class="classentry"> + <a> + <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> + </a> + <h1 class="title"> + <xsl:apply-templates select="./classmeta/classtitle"/> + </h1> + <p> + <xsl:apply-templates select="./classmeta/shortdesc"/> + </p> + <h3> + Object Hierarchy + </h3> + <p> + <div class="literallayout"> + <br /> + <xsl:call-template name="get_class_hierarchy"> + <xsl:with-param name="classname"> + <xsl:value-of select="./classmeta/classtitle"/> + </xsl:with-param> + </xsl:call-template> + <br /> + </div> + </p> + <p> + <h3>Object Properties and Methods</h3> + <xsl:apply-templates select="./constructor" mode="synoptic.mode"/> + <xsl:apply-templates select="./methods" mode="synoptic.mode"/> + <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> + </p> + <xsl:apply-templates select="./methods|./signals|./atrributes"/> + </div> + </xsl:template> + + <xsl:template match="constructor" mode="synoptic.mode"> + <div> + <xsl:attribute name="name"> + <xsl:value-of select="@id"/> + </xsl:attribute> + <h4>Constructor</h4> + <p> + <xsl:apply-templates select="./funcsynopsis|./desc"/> + </p> + </div> + </xsl:template> + + <xsl:template match="methods" mode="synoptic.mode"> + <h4>Methods</h4> + <xsl:apply-templates select="./method" mode="synoptic.mode"/> + </xsl:template> + + <xsl:template match="method" mode="synoptic.mode"> + <xsl:apply-templates select="./funcsynopsis|./shortdesc"/> + </xsl:template> + + <xsl:template match="attributes" mode="synoptic.mode"> + <h4>Attributes</h4> + <xsl:apply-templates select="./attributes" mode="synoptic.mode"/> + </xsl:template> + + <xsl:template match="attribute" mode="synoptic.mode"> + <xsl:apply-templates select="./shortdesc"/> + </xsl:template> + + <xsl:template match="signals" mode="synoptic.mode"> + <h4>Signals</h4> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> + </xsl:template> + + <xsl:template match="signal" mode="synoptic.mode"> + <xsl:apply-templates select="./firedwhen|./userfunc|./shortdesc"/> + </xsl:template> + + <xsl:template match="methods|signals|attributes"> + <xsl:apply-templates /> + </xsl:template> + + <xsl:template match="method"> + <a> + <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> + </a> + <h1> + <xsl:apply-templates select="." mode="title.content"/> + </h1> + <xsl:apply-templates select="./funcsynopsis|./desc"/> + </xsl:template> + + <xsl:template match="signal"> + <a> + <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> + </a> + <h1> + <xsl:apply-templates select="." mode="title.content"/> + </h1> + <xsl:apply-templates select="./signalname|./firedwhen|./desc"/> + </xsl:template> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/label.xsl diff -u php-gtk/docs/stylesheets/xsl/html/label.xsl:1.1 php-gtk/docs/stylesheets/xsl/html/label.xsl:1.2 --- php-gtk/docs/stylesheets/xsl/html/label.xsl:1.1 Sun Mar 18 07:54:47 2001 +++ php-gtk/docs/stylesheets/xsl/html/label.xsl Thu May 3 04:42:53 2001 @@ -29,4 +29,12 @@ </xsl:if> </xsl:template> +<xsl:template match="method|signal|attribute" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/overrides.xsl diff -u php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.2 php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.3 --- php-gtk/docs/stylesheets/xsl/html/overrides.xsl:1.2 Sat Apr 7 09:18:36 2001 +++ php-gtk/docs/stylesheets/xsl/html/overrides.xsl Thu May 3 04:42:53 2001 @@ -1,45 +1,51 @@ <?xml version='1.0'?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> -<xsl:template match="funcprototype"> + <xsl:template match="funcprototype"> <p> <code> <xsl:apply-templates mode="func.prototype"/> </code> </p> -</xsl:template> + </xsl:template> -<xsl:template match="funcdef" mode="func.prototype"> + <xsl:template match="funcdef" mode="func.prototype"> <code class="{name(.)}"> <xsl:apply-templates/> </code> -</xsl:template> + </xsl:template> -<xsl:template match="paramdef" mode="func.prototype"> + <xsl:template match="paramdef" mode="func.prototype"> + <xsl:variable name="optional" select="count(./parameter/optional)"/> <xsl:variable name="paramnum"> - <xsl:number count="paramdef" format="1"/> + <xsl:number count="paramdef" format="1"/> </xsl:variable> <xsl:if test="$paramnum=1">(</xsl:if> + <xsl:if test="$optional&gt;0">[</xsl:if> <xsl:choose> - <xsl:when test="$funcsynopsis.style='ansi'"> - <xsl:apply-templates/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> + <xsl:when test="$funcsynopsis.style='ansi'"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> </xsl:choose> + <xsl:if test="$optional&gt;0">]</xsl:if> <xsl:choose> - <xsl:when test="following-sibling::paramdef"> - <xsl:text>, </xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>);</xsl:text> - </xsl:otherwise> + <xsl:when test="following-sibling::paramdef"> + <xsl:text>, </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>);</xsl:text> + </xsl:otherwise> </xsl:choose> -</xsl:template> + </xsl:template> + + <xsl:template match="optional"/> -<xsl:template match="funcprototype/paramdef"/> -<xsl:template match="funcprototype/funcdef"/> + <xsl:template match="funcprototype/paramdef"/> + <xsl:template match="funcprototype/funcdef"/> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/title.xsl diff -u php-gtk/docs/stylesheets/xsl/html/title.xsl:1.1 php-gtk/docs/stylesheets/xsl/html/title.xsl:1.2 --- php-gtk/docs/stylesheets/xsl/html/title.xsl:1.1 Sun Mar 18 07:54:47 2001 +++ php-gtk/docs/stylesheets/xsl/html/title.xsl Thu May 3 04:42:53 2001 @@ -47,4 +47,29 @@ </xsl:apply-templates> </xsl:template> +<xsl:template match="method" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="classentry" select="ancestor::classentry"/> + <xsl:value-of select="$classentry/classmeta/classtitle"/> + <xsl:text>::</xsl:text> + <xsl:value-of select="(./funcsynopsis/funcprototype/funcdef/function)[1]" /> +</xsl:template> + +<xsl:template match="signal" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:value-of select="(./signalname)[1]" /> +</xsl:template> + +<xsl:template match="attribute" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="classentry" select="ancestor::classentry"/> + <xsl:value-of select="$classentry/classmeta/classtitle"/> + <xsl:text>::</xsl:text> + <xsl:value-of select="(./funcsynopsis/funcprototype/funcdef/function)[1]"/> +</xsl:template> + + </xsl:stylesheet>
« previous php.gtk (#1611) next »