cvs: php-gtk /docs/stylesheets/xsl/html chunk.xsl overrides.xsl
| From: | James Moore | Date: | Thu, 29 Mar 2001 20:55:39 +0000 |
| Subject: | cvs: php-gtk /docs/stylesheets/xsl/html chunk.xsl overrides.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1206@lists.php.net to get a copy of this message | ||
jmoore Thu Mar 29 12:55:39 2001 EDT
Added files:
/php-gtk/docs/stylesheets/xsl/html overrides.xsl
Modified files:
/php-gtk/docs/stylesheets/xsl/html chunk.xsl
Log:
Nicer output of function definitions
Index: php-gtk/docs/stylesheets/xsl/html/chunk.xsl
diff -u php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.6
php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.7
--- php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.6 Sun Mar 18 13:38:06 2001
+++ php-gtk/docs/stylesheets/xsl/html/chunk.xsl Thu Mar 29 12:55:39 2001
@@ -6,6 +6,7 @@
<xsl:include href="label.xsl"/>
<xsl:include href="class.xsl"/>
<xsl:include href="toc.xsl"/>
+<xsl:include href="overrides.xsl"/>
<!-- ==================================================================== -->
Index: php-gtk/docs/stylesheets/xsl/html/overrides.xsl
+++ php-gtk/docs/stylesheets/xsl/html/overrides.xsl
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:template match="funcprototype">
<p>
<code>
<xsl:apply-templates mode="func.prototype"/>
</code>
</p>
</xsl:template>
<xsl:template match="funcdef" mode="func.prototype">
<code class="{name(.)}">
<xsl:apply-templates/>
</code>
</xsl:template>
<xsl:template match="paramdef" mode="func.prototype">
<xsl:variable name="paramnum">
<xsl:number count="paramdef" format="1"/>
</xsl:variable>
<xsl:if test="$paramnum=1">(</xsl:if>
<xsl:choose>
<xsl:when test="$funcsynopsis.style='ansi'">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./parameter"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<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 match="funcprototype/paramdef"/>
<xsl:template match="funcprototype/funcdef"/>
</xsl:stylesheet>