goba Sun Aug 4 08:54:15 2002 EDT
Modified files:
/phpdoc/xsl html-common.xsl
Log:
OK, so we need to select the actual element, it's not included in
apply-template calls by default... Also some enhancements with concat
to make code look smaller and nicer ;))
Index: phpdoc/xsl/html-common.xsl
diff -u phpdoc/xsl/html-common.xsl:1.17 phpdoc/xsl/html-common.xsl:1.18
--- phpdoc/xsl/html-common.xsl:1.17 Sun Aug 4 07:50:14 2002
+++ phpdoc/xsl/html-common.xsl Sun Aug 4 08:54:15 2002
@@ -3,7 +3,7 @@
Common HTML customizations
- $Id: html-common.xsl,v 1.17 2002/08/04 11:50:14 goba Exp $
+ $Id: html-common.xsl,v 1.18 2002/08/04 12:54:15 goba Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -220,16 +220,14 @@
<!-- Override default [java] methodsynopsis rendering -->
<xsl:template match="methodsynopsis">
- <xsl:apply-templates mode="php"/>
+ <xsl:apply-templates select="." mode="php"/>
</xsl:template>
<!-- Print out the return type, the method name, then the parameters.
Close all the optional signs opened and close the prentheses -->
<xsl:template match="methodsynopsis" mode="php">
- <xsl:value-of select="./type/text()"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="./methodname/text()"/>
- <xsl:text> ( </xsl:text>
+ <xsl:value-of select="concat(./type/text(), ' ')"/>
+ <xsl:value-of select="concat(./methodname/text(), ' ( ')"/>
<xsl:apply-templates select="./methodparam" mode="php"/>
<xsl:for-each select="./methodparam[@choice = 'opt']">
<xsl:text>]</xsl:text>
@@ -246,9 +244,8 @@
<xsl:if test="position() != 1">
<xsl:text>, </xsl:text>
</xsl:if>
- <xsl:value-of select="./type/text()"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="./parameter/text()"/>
+ <xsl:value-of select="concat(./type/text(), ' ', ./parameter/text())"/>
</xsl:template>
</xsl:stylesheet>
+
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php