cvs: php-gtk-doc /stylesheets/common en.xml labels.xsl titles.xsl /stylesheets/html autotoc.xsl chunk-common.xsl class.xsl division.xsl phpweb.xsl.in
titlepage.xsl

From: Date: Sun, 03 Aug 2003 17:54:08 +0000
Subject: cvs: php-gtk-doc /stylesheets/common en.xml labels.xsl titles.xsl /stylesheets/html autotoc.xsl chunk-common.xsl class.xsl division.xsl phpweb.xsl.in
titlepage.xsl
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-823@lists.php.net to get a copy of this message
sfox Sun Aug 3 13:54:08 2003 EDT Modified files: /php-gtk-doc/stylesheets/common en.xml labels.xsl titles.xsl /php-gtk-doc/stylesheets/html autotoc.xsl chunk-common.xsl class.xsl division.xsl phpweb.xsl.in titlepage.xsl Log: Some changes to the ways we deal with enums and signals (makes livedocs almost possible for php-gtk-doc too)

Index: php-gtk-doc/stylesheets/common/en.xml diff -u php-gtk-doc/stylesheets/common/en.xml:1.4 php-gtk-doc/stylesheets/common/en.xml:1.5 --- php-gtk-doc/stylesheets/common/en.xml:1.4 Tue Jun 10 07:39:14 2003 +++ php-gtk-doc/stylesheets/common/en.xml Sun Aug 3 13:54:07 2003 @@ -17,6 +17,10 @@ <gentext key="nav-home" text="Home"/> <gentext key="note" text="Note"/> <gentext key="objecthierarchy" text="Object Hierarchy"/> + <gentext key="PHPGTKauths" text="PHP-GTK authors"/> + <gentext key="PHPGTKcons" text="PHP-GTK contributors"/> + <gentext key="PHPGTKmanauths" text="PHP-GTK Manual authors"/> + <gentext key="PHPGTKmancons" text="PHP-GTK Manual contributors"/> <gentext key="properties" text="Properties"/> <gentext key="seealso" text="See also"/> <gentext key="signals" text="Signals"/> @@ -34,6 +38,7 @@ <template name="constructor" text="%t"/> <template name="enum" text="%t"/> <template name="enums" text="%t"/> + <template name="enumset" text="%t"/> <template name="example" text="Example %n. %t"/> <template name="figure" text="Figure %n. %t"/> <template name="legalnotice" text="%t"/> @@ -41,6 +46,10 @@ <template name="methods" text=""/> <template name="part" text="%t"/> <template name="partintro" text="%t"/> + <template name="PHPGTKauths" text="%t"/> + <template name="PHPGTKcons" text="%t"/> + <template name="PHPGTKmanauths" text="%t"/> + <template name="PHPGTKmancons" text="%t"/> <template name="prop" text="%t"/> <template name="properties" text=""/> <template name="reference" text="%t"/> Index: php-gtk-doc/stylesheets/common/labels.xsl diff -u php-gtk-doc/stylesheets/common/labels.xsl:1.2 php-gtk-doc/stylesheets/common/labels.xsl:1.3 --- php-gtk-doc/stylesheets/common/labels.xsl:1.2 Tue Jun 10 02:11:17 2003 +++ php-gtk-doc/stylesheets/common/labels.xsl Sun Aug 3 13:54:07 2003 @@ -273,7 +273,7 @@ </xsl:choose> </xsl:template> -<xsl:template match="enums|classset" mode="label.markup"> +<xsl:template match="enumset|classset" mode="label.markup"> <xsl:param name="punct">.</xsl:param> <xsl:if test="@label"> <xsl:value-of select="@label"/> @@ -281,7 +281,7 @@ </xsl:if> </xsl:template> -<xsl:template match="classentry" mode="label.markup"> +<xsl:template match="classentry|enums" mode="label.markup"> <xsl:param name="punct">.</xsl:param> <xsl:if test="@label"> <xsl:value-of select="@label"/> Index: php-gtk-doc/stylesheets/common/titles.xsl diff -u php-gtk-doc/stylesheets/common/titles.xsl:1.4 php-gtk-doc/stylesheets/common/titles.xsl:1.5 --- php-gtk-doc/stylesheets/common/titles.xsl:1.4 Fri Jun 13 15:29:14 2003 +++ php-gtk-doc/stylesheets/common/titles.xsl Sun Aug 3 13:54:07 2003 @@ -54,7 +54,7 @@ <xsl:template match="set" mode="title.markup"> <xsl:param name="allow-anchors" select="'0'"/> - <xsl:variable name="title" select="(set/title|title)[1]"/> + <xsl:variable name="title" select="./title"/> <xsl:apply-templates select="$title" mode="title.markup"> <xsl:with-param name="allow-anchors" select="$allow-anchors"/> </xsl:apply-templates> @@ -204,7 +204,7 @@ </xsl:choose> </xsl:template> -<xsl:template match="classset" mode="title.markup"> +<xsl:template match="classset|enumset" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> <xsl:apply-templates select="(./title)[1]" @@ -212,6 +212,13 @@ <xsl:with-param name="text-only" select="$text-only"/> <xsl:with-param name="allow-anchors" select="$allow-anchors"/> </xsl:apply-templates> +</xsl:template> + +<xsl:template match="enums" mode="title.markup"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="enumset" select="ancestor::enumset"/> + <xsl:value-of select="$enumset/title"/> </xsl:template> <xsl:template match="classentry" mode="title.markup"> Index: php-gtk-doc/stylesheets/html/autotoc.xsl diff -u php-gtk-doc/stylesheets/html/autotoc.xsl:1.3 php-gtk-doc/stylesheets/html/autotoc.xsl:1.4 --- php-gtk-doc/stylesheets/html/autotoc.xsl:1.3 Fri Jun 13 15:53:21 2003 +++ php-gtk-doc/stylesheets/html/autotoc.xsl Sun Aug 3 13:54:08 2003 @@ -3,7 +3,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: autotoc.xsl,v 1.3 2003/06/13 19:53:21 sfox Exp $ + $Id: autotoc.xsl,v 1.4 2003/08/03 17:54:08 sfox Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -62,7 +62,7 @@ <xsl:template name="division.toc"> <xsl:if test="$generate.division.toc != 0"> - <xsl:variable name="nodes" select="part|classset|enums + <xsl:variable name="nodes" select="part|classset|enumset |chapter|appendix |refentry|bridgehead"/> <xsl:if test="$nodes"> @@ -86,7 +86,7 @@ <xsl:if test="$generate.component.toc != 0"> <xsl:variable name="nodes" select="section|sect1|sect2|refentry |classentry[@hide='0'] - |enum[@hide='0'] + |enums/enum[@hide='0'] |bridgehead[not(@renderas)] |.//bridgehead[@renderas='sect1']"/> <xsl:if test="$nodes"> @@ -148,7 +148,7 @@ </xsl:if> </xsl:template> -<xsl:template match="appendix|chapter|classset|enums|part|sect1" mode="toc"> +<xsl:template match="appendix|chapter|classset|enumset|part|sect1" mode="toc"> <xsl:variable name="nodes" select="bridgehead"/> <xsl:variable name="subtoc"> Index: php-gtk-doc/stylesheets/html/chunk-common.xsl diff -u php-gtk-doc/stylesheets/html/chunk-common.xsl:1.5 php-gtk-doc/stylesheets/html/chunk-common.xsl:1.6 --- php-gtk-doc/stylesheets/html/chunk-common.xsl:1.5 Fri Jun 13 15:53:21 2003 +++ php-gtk-doc/stylesheets/html/chunk-common.xsl Sun Aug 3 13:54:08 2003 @@ -96,7 +96,7 @@ <xsl:when test="name($node)='book'">1</xsl:when> <xsl:when test="name($node)='set'">1</xsl:when> <xsl:when test="name($node)='classset'">1</xsl:when> - <xsl:when test="name($node)='enums'">1</xsl:when> + <xsl:when test="name($node)='enumset'">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)='signal'">1</xsl:when> @@ -709,7 +709,7 @@ |preceding::method[1] |preceding::signal[1] |preceding::classset[1] - |preceding::enums[1] + |preceding::enumset[1] |preceding::prop[1] |preceding::classentry[1] |preceding::refentry[1] @@ -724,7 +724,7 @@ |ancestor::method[1] |ancestor::signal[1] |ancestor::classset[1] - |ancestor::enums[1] + |ancestor::enumset[1] |ancestor::classentry[1])[last()]"/> <xsl:variable name="next" @@ -732,7 +732,7 @@ |following::chapter[1] |following::appendix[1] |following::classset[1] - |following::enums[1] + |following::enumset[1] |following::part[1] |following::constructor[1] |following::method[1] @@ -753,7 +753,7 @@ |descendant::method[1] |descendant::signal[1] |descendant::classset[1] - |descendant::enums[1] + |descendant::enumset[1] |descendant::classentry[1] |descendant::reference[1] |descendant::refentry[1] @@ -775,7 +775,7 @@ |preceding::method[1] |preceding::signal[1] |preceding::classset[1] - |preceding::enums[1] + |preceding::enumset[1] |preceding::prop[1] |preceding::classentry[1] |preceding::refentry[1] @@ -790,7 +790,7 @@ |ancestor::method[1] |ancestor::signal[1] |ancestor::classset[1] - |ancestor::enums[1] + |ancestor::enumset[1] |ancestor::classentry[1])[last()]"/> <xsl:variable name="next" @@ -798,7 +798,7 @@ |following::chapter[1] |following::appendix[1] |following::classset[1] - |following::enums[1] + |following::enumset[1] |following::part[1] |following::constructor[1] |following::method[1] @@ -819,7 +819,7 @@ |descendant::method[1] |descendant::signal[1] |descendant::classset[1] - |descendant::enums[1] + |descendant::enumset[1] |descendant::classentry[1] |descendant::refentry[1] |descendant::sect1[name(parent::*) != 'sect1'][1])[1]"/> @@ -840,7 +840,7 @@ |preceding::method[1] |preceding::signal[1] |preceding::classset[1] - |preceding::enums[1] + |preceding::enumset[1] |preceding::prop[1] |preceding::classentry[1] |preceding::refentry[1] @@ -855,7 +855,7 @@ |ancestor::method[1] |ancestor::signal[1] |ancestor::classset[1] - |ancestor::enums[1] + |ancestor::enumset[1] |ancestor::classentry[1])[last()]"/> <xsl:variable name="next" @@ -863,7 +863,7 @@ |following::chapter[1] |following::appendix[1] |following::classset[1] - |following::enums[1] + |following::enumset[1] |following::part[1] |following::constructor[1] |following::method[1] @@ -881,7 +881,7 @@ |descendant::constructor[1] |descendant::method[1] |descendant::signal[1] - |descendant::enums[1] + |descendant::enumset[1] |descendant::classset[1] |descendant::classentry[1] |descendant::refentry[1] @@ -1036,7 +1036,7 @@ </xsl:choose> </xsl:template> -<xsl:template match="enums|classset|classentry|method|signal|prop|constructor|enum"> +<xsl:template match="enumset|classset|classentry|method|signal|prop|constructor|enum"> <xsl:call-template name="process-chunk-element"/> </xsl:template> Index: php-gtk-doc/stylesheets/html/class.xsl diff -u php-gtk-doc/stylesheets/html/class.xsl:1.6 php-gtk-doc/stylesheets/html/class.xsl:1.7 --- php-gtk-doc/stylesheets/html/class.xsl:1.6 Tue Jun 17 17:01:42 2003 +++ php-gtk-doc/stylesheets/html/class.xsl Sun Aug 3 13:54:08 2003 @@ -29,7 +29,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="enums"> + <xsl:template match="enumset"> <xsl:variable name="id"> <xsl:call-template name="object.id" /> </xsl:variable> @@ -42,7 +42,7 @@ <xsl:apply-templates select="./partintro"/> <xsl:call-template name="component.toc"/> </div> - <xsl:apply-templates select="./enum"/> + <xsl:apply-templates select="./enums/enum"/> </div> </xsl:when> <xsl:otherwise> @@ -50,7 +50,7 @@ <xsl:apply-templates select="./title"/> <xsl:apply-templates select="./partintro"/> <xsl:call-template name="component.toc"/> - <xsl:apply-templates select="./enum"/> + <xsl:apply-templates select="./enums/enum"/> </div> </xsl:otherwise> </xsl:choose> @@ -169,7 +169,7 @@ </xsl:choose> </xsl:template> <!--========================================================================--> - <xsl:template match="function|constructor"> + <xsl:template match="function|constructor|cbfunction"> <xsl:call-template name="func.proto"> <xsl:with-param name="node" select="."/> </xsl:call-template> @@ -572,11 +572,11 @@ </b> </p> <p> - <xsl:apply-templates select="./callback" /> + <xsl:apply-templates select="./funcsynopsis" /> </p> </xsl:template> - <xsl:template match="callback"> + <xsl:template match="funcsynopsis"> <xsl:apply-templates select="funcprototype"/> </xsl:template> Index: php-gtk-doc/stylesheets/html/division.xsl diff -u php-gtk-doc/stylesheets/html/division.xsl:1.4 php-gtk-doc/stylesheets/html/division.xsl:1.5 --- php-gtk-doc/stylesheets/html/division.xsl:1.4 Fri Jun 13 15:53:21 2003 +++ php-gtk-doc/stylesheets/html/division.xsl Sun Aug 3 13:54:08 2003 @@ -3,7 +3,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: division.xsl,v 1.4 2003/06/13 19:53:21 sfox Exp $ + $Id: division.xsl,v 1.5 2003/08/03 17:54:08 sfox Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -136,7 +136,7 @@ <div class="{name(.)}" dir="rtl"> <xsl:call-template name="partintro.titlepage"/> <xsl:apply-templates/> - <xsl:if test="not(ancestor::enums) and not(ancestor::classset) and $generate.part.toc != '0'"> + <xsl:if test="not(ancestor::enumset) and not(ancestor::classset) and $generate.part.toc != '0'"> <xsl:apply-templates select="parent::*" mode="make.part.toc"/> </xsl:if> </div> @@ -145,7 +145,7 @@ <div class="{name(.)}"> <xsl:call-template name="partintro.titlepage"/> <xsl:apply-templates/> - <xsl:if test="not(ancestor::enums) and not(ancestor::classset) and $generate.part.toc != '0'"> + <xsl:if test="not(ancestor::enumset) and not(ancestor::classset) and $generate.part.toc != '0'"> <xsl:apply-templates select="parent::*" mode="make.part.toc"/> </xsl:if> </div> Index: php-gtk-doc/stylesheets/html/phpweb.xsl.in diff -u php-gtk-doc/stylesheets/html/phpweb.xsl.in:1.5 php-gtk-doc/stylesheets/html/phpweb.xsl.in:1.6 --- php-gtk-doc/stylesheets/html/phpweb.xsl.in:1.5 Tue Jun 10 15:11:20 2003 +++ php-gtk-doc/stylesheets/html/phpweb.xsl.in Sun Aug 3 13:54:08 2003 @@ -90,8 +90,8 @@ </xsl:when> <xsl:when test="name($node)='enum'"> - <xsl:variable name="enums" select="ancestor::enums"/> - <xsl:for-each select="$enums/enum"> + <xsl:variable name="enumset" select="ancestor::enumset"/> + <xsl:for-each select="$enumset/enums/enum"> <xsl:call-template name="gen.text.toc.array"> <xsl:with-param name="node" select="." /> </xsl:call-template> Index: php-gtk-doc/stylesheets/html/titlepage.xsl diff -u php-gtk-doc/stylesheets/html/titlepage.xsl:1.2 php-gtk-doc/stylesheets/html/titlepage.xsl:1.3 --- php-gtk-doc/stylesheets/html/titlepage.xsl:1.2 Fri Jun 13 15:53:21 2003 +++ php-gtk-doc/stylesheets/html/titlepage.xsl Sun Aug 3 13:54:08 2003 @@ -3,7 +3,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: titlepage.xsl,v 1.2 2003/06/13 19:53:21 sfox Exp $ + $Id: titlepage.xsl,v 1.3 2003/08/03 17:54:08 sfox Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -74,17 +74,25 @@ <xsl:template name="authorgroup-title"> <xsl:param name="id"></xsl:param> <xsl:choose> - <xsl:when test="$id='phpgtk.authors'"> - <xsl:text>PHP-GTK Authors</xsl:text> + <xsl:when test="($id='phpgtk.authors') or ($id='credits.phpgtk.authors')"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">PHPGTKauths</xsl:with-param> + </xsl:call-template> </xsl:when> - <xsl:when test="$id='phpgtk.contributors'"> - <xsl:text>PHP-GTK Contributors</xsl:text> + <xsl:when test="($id='phpgtk.contributors') or ($id='credits.phpgtk.contributors')"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">PHPGTKcons</xsl:with-param> + </xsl:call-template> </xsl:when> - <xsl:when test="$id='phpgtk.manual.contributors'"> - <xsl:text>PHP-GTK Manual Contributors</xsl:text> + <xsl:when test="($id='phpgtk.manual.authors') or ($id='credits.phpgtk.manual.authors')"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">PHPGTKmanauths</xsl:with-param> + </xsl:call-template> </xsl:when> - <xsl:when test="$id='phpgtk.manual.authors'"> - <xsl:text>PHP-GTK Manual</xsl:text> + <xsl:when test="($id='phpgtk.manual.contributors') or ('credits.phpgtk.manual.contributors')"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">PHPGTKmancons</xsl:with-param> + </xsl:call-template> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose>
« previous php.gtk.doc (#823) next »