cvs: php-gtk-doc /en reference.xml /stylesheets/xsl/html enum.xsl phpweb.xsl toc.xsl
| From: | James Moore | Date: | Sat, 09 Jun 2001 13:20:36 +0000 |
| Subject: | cvs: php-gtk-doc /en reference.xml /stylesheets/xsl/html enum.xsl phpweb.xsl toc.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1928@lists.php.net to get a copy of this message | ||
jmoore Sat Jun 9 15:20:36 2001 EDT
Modified files:
/php-gtk-doc/en reference.xml
/php-gtk-doc/stylesheets/xsl/html enum.xsl phpweb.xsl toc.xsl
Log:
- Add enums to reference.xml
- improve stylesheets for enums so they appear nicely in both HTML and PHPWEB manuals
Index: php-gtk-doc/en/reference.xml
diff -u php-gtk-doc/en/reference.xml:1.1.1.1 php-gtk-doc/en/reference.xml:1.2
--- php-gtk-doc/en/reference.xml:1.1.1.1 Fri Jun 1 16:33:46 2001
+++ php-gtk-doc/en/reference.xml Sat Jun 9 15:20:36 2001
@@ -99,6 +99,6 @@
>k.gtkvseparator;
>k.gtkwidget;
>k.gtkwindow;
-
+ >k.gtkenum;
</classset>
</book>
Index: php-gtk-doc/stylesheets/xsl/html/enum.xsl
diff -u php-gtk-doc/stylesheets/xsl/html/enum.xsl:1.2 php-gtk-doc/stylesheets/xsl/html/enum.xsl:1.3
--- php-gtk-doc/stylesheets/xsl/html/enum.xsl:1.2 Sat Jun 9 12:12:40 2001
+++ php-gtk-doc/stylesheets/xsl/html/enum.xsl Sat Jun 9 15:20:36 2001
@@ -2,8 +2,9 @@
version="1.0">
<xsl:template match="enumname">
+ <xsl:param name="with-link" select="0" />
<xsl:choose>
- <xsl:when test="name(parent::node())='enum'">
+ <xsl:when test="name(parent::node())='enum' and
$with-link='0'">
<xsl:apply-templates />
</xsl:when>
<xsl:otherwise>
@@ -74,7 +75,7 @@
<xsl:template name="gen.enumname.url">
<xsl:param name="enumname" />
- <xsl:variable name="enumnode"
select="//enum[enumname='$enumname']" />
+ <xsl:variable name="enumnode"
select="//enum[enumname[self::node()=$enumname]]" />
<xsl:call-template name="href.target">
<xsl:with-param name="object" select="$enumnode"/>
Index: php-gtk-doc/stylesheets/xsl/html/phpweb.xsl
diff -u php-gtk-doc/stylesheets/xsl/html/phpweb.xsl:1.1.1.1
php-gtk-doc/stylesheets/xsl/html/phpweb.xsl:1.2
--- php-gtk-doc/stylesheets/xsl/html/phpweb.xsl:1.1.1.1 Fri Jun 1 16:33:47 2001
+++ php-gtk-doc/stylesheets/xsl/html/phpweb.xsl Sat Jun 9 15:20:36 2001
@@ -155,8 +155,17 @@
</xsl:for-each>
</xsl:when>
+ <xsl:when test="name($node)='enum'">
+ <xsl:variable name="classset" select="ancestor::classset"/>
+ <xsl:for-each select="$classset/classentry|$classset/enum">
+ <xsl:call-template name="gen.text.toc.array">
+ <xsl:with-param name="node" select="." />
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:when>
+
<xsl:when test="name($node)='classentry'">
- <xsl:for-each
select="preceding-sibling::classentry|self::*|following-sibling::classentry">
+ <xsl:for-each
select="preceding-sibling::classentry|self::*|following-sibling::classentry|preceding-sibling::enum|following-sibling::enum">
<xsl:call-template name="gen.text.toc.array">
<xsl:with-param name="node" select="." />
</xsl:call-template>
@@ -208,6 +217,9 @@
</xsl:when>
<xsl:when test="name($node)='signal'">
<xsl:text>NAV_SIGNAL</xsl:text>
+ </xsl:when>
+ <xsl:when test="name($node)='enum'">
+ <xsl:text>NAV_ENUM</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>NAV_NONE</xsl:text>
Index: php-gtk-doc/stylesheets/xsl/html/toc.xsl
diff -u php-gtk-doc/stylesheets/xsl/html/toc.xsl:1.2 php-gtk-doc/stylesheets/xsl/html/toc.xsl:1.3
--- php-gtk-doc/stylesheets/xsl/html/toc.xsl:1.2 Sat Jun 2 19:57:09 2001
+++ php-gtk-doc/stylesheets/xsl/html/toc.xsl Sat Jun 9 15:20:36 2001
@@ -3,7 +3,7 @@
version='1.0'>
<!-- ********************************************************************
- $Id: toc.xsl,v 1.2 2001/06/02 17:57:09 jmoore Exp $
+ $Id: toc.xsl,v 1.3 2001/06/09 13:20:36 jmoore Exp $
********************************************************************
-->
@@ -32,7 +32,7 @@
<xsl:template name="component.toc">
<xsl:if test="$generate.component.toc != 0">
- <xsl:variable name="nodes"
select="section|sect1|refentry|classentry"/>
+ <xsl:variable name="nodes"
select="section|sect1|refentry|classentry|enum"/>
<xsl:if test="$nodes">
<div class="toc">
<p>
@@ -51,7 +51,7 @@
</xsl:template>
<xsl:template name="section.toc">
- <xsl:variable name="nodes"
select="section|sect1|sect2|sect3|sect4|sect5|refentry|classentry"/>
+ <xsl:variable name="nodes"
select="section|sect1|sect2|sect3|sect4|sect5|refentry|classentry|enum"/>
<xsl:if test="$nodes">
<div class="toc">
<p>
@@ -220,5 +220,16 @@
- <xsl:apply-templates select="$shortdesc"/>
</xsl:element>
</xsl:template>
+
+<xsl:template match="enum" mode="toc">
+ <br />
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target"/>
+ </xsl:attribute>
+ <xsl:apply-templates select="./enumname" />
+ </a>
+</xsl:template>
+
</xsl:stylesheet>