cvs: peardoc /phd-db5-conversion db4-upgrade.xsl

From: Date: Sat, 04 Oct 2008 19:51:14 +0000
Subject: cvs: peardoc /phd-db5-conversion db4-upgrade.xsl
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11117@lists.php.net to get a copy of this message
cweiske Sat Oct 4 19:51:14 2008 UTC Modified files: /peardoc/phd-db5-conversion db4-upgrade.xsl Log: More fixes for automatic docbook conversion http://cvs.php.net/viewvc.cgi/peardoc/phd-db5-conversion/db4-upgrade.xsl?r1=1.3&r2=1.4&diff_format=u Index: peardoc/phd-db5-conversion/db4-upgrade.xsl diff -u peardoc/phd-db5-conversion/db4-upgrade.xsl:1.3 peardoc/phd-db5-conversion/db4-upgrade.xsl:1.4 --- peardoc/phd-db5-conversion/db4-upgrade.xsl:1.3 Sat Oct 4 13:55:54 2008 +++ peardoc/phd-db5-conversion/db4-upgrade.xsl Sat Oct 4 19:51:14 2008 @@ -19,7 +19,7 @@ # value at all. # # Author: Norman Walsh, <ndw@nwalsh.com> -# Release: $Id: db4-upgrade.xsl,v 1.3 2008/10/04 13:55:54 cweiske Exp $ +# Release: $Id: db4-upgrade.xsl,v 1.4 2008/10/04 19:51:14 cweiske Exp $ # ====================================================================== --> @@ -997,7 +997,7 @@ <xsl:copy/> </xsl:template> -<xsl:template match="paramdef"> +<xsl:template match="paramdef" priority="200"> <paramdef> <xsl:choose> <xsl:when test="parameter/optional"> @@ -1008,11 +1008,29 @@ </xsl:otherwise> </xsl:choose> <xsl:apply-templates/> + + <!-- move <constant> out into <initializer> --> + <xsl:if test="parameter/constant"> + <initializer> + <xsl:value-of select="parameter/constant"/> + </initializer> + </xsl:if> + <xsl:if test="parameter/optional/constant"> + <initializer> + <xsl:value-of select="parameter/optional/constant"/> + </initializer> + </xsl:if> </paramdef> </xsl:template> -<xsl:template match="parameter/optional"> +<xsl:template match="parameter/optional" priority="200"> <xsl:apply-templates/> </xsl:template> +<!-- we don't want it anymore since we have <initializer> --> +<xsl:template match="parameter/optional/constant" priority="100"> +</xsl:template> +<xsl:template match="parameter/constant" priority="100"> +</xsl:template> + </xsl:stylesheet>

« previous php.pear.doc (#11117) next »