techtonik Tue Nov 9 07:59:38 2004 EDT
Modified files:
/phpdoc/xsl common.xsl
Log:
[ADD] * handler for parameter role="reference" in function prototype
[ADD] * pagebreak if function has several prototypes
http://cvs.php.net/diff.php/phpdoc/xsl/common.xsl?r1=1.19&r2=1.20&ty=u
Index: phpdoc/xsl/common.xsl
diff -u phpdoc/xsl/common.xsl:1.19 phpdoc/xsl/common.xsl:1.20
--- phpdoc/xsl/common.xsl:1.19 Wed Nov 3 02:18:48 2004
+++ phpdoc/xsl/common.xsl Tue Nov 9 07:59:37 2004
@@ -3,7 +3,7 @@
common.xsl: Common customizations for all HTML formats
- $Id: common.xsl,v 1.19 2004/11/03 07:18:48 techtonik Exp $
+ $Id: common.xsl,v 1.20 2004/11/09 12:59:37 techtonik Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -80,14 +80,15 @@
</methodsynopsis>
Note, that this is DSSSL like version. htmlhelp.xsl uses another, span
style
- TODO: <parameter role="reference">
-->
<!-- We do not want semicolon at the end of prototype and our own style
of square brackets for optional parameters. Make methodnames bold
like in DSSSL -->
<xsl:template match="methodsynopsis">
- <xsl:apply-templates />
+ <div class="{name(.)}">
+ <xsl:apply-templates />
+ </div>
</xsl:template>
<xsl:template match="methodsynopsis/type">
@@ -111,6 +112,9 @@
</xsl:template>
<xsl:template match="methodparam/parameter">
+ <xsl:if test="@role='reference'">
+ <xsl:text>&</xsl:text>
+ </xsl:if>
<xsl:apply-templates />
</xsl:template>