cvs: peardoc /phd-db5-conversion db4-upgrade.xsl
| From: | Christian Weiske | Date: | Sat, 04 Oct 2008 13:55:54 +0000 |
| Subject: | cvs: peardoc /phd-db5-conversion db4-upgrade.xsl | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11114@lists.php.net to get a copy of this message | ||
cweiske Sat Oct 4 13:55:54 2008 UTC
Modified files:
/peardoc/phd-db5-conversion db4-upgrade.xsl
Log:
Fix db4-upgrade.xsl to not generate empty <info> tags in refsections.
Fixes ca. 80% of the remaining errors.
http://cvs.php.net/viewvc.cgi/peardoc/phd-db5-conversion/db4-upgrade.xsl?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/phd-db5-conversion/db4-upgrade.xsl
diff -u peardoc/phd-db5-conversion/db4-upgrade.xsl:1.2
peardoc/phd-db5-conversion/db4-upgrade.xsl:1.3
--- peardoc/phd-db5-conversion/db4-upgrade.xsl:1.2 Sat Oct 4 12:43:22 2008
+++ peardoc/phd-db5-conversion/db4-upgrade.xsl Sat Oct 4 13:55:54 2008
@@ -19,7 +19,7 @@
# value at all.
#
# Author: Norman Walsh, <ndw@nwalsh.com>
-# Release: $Id: db4-upgrade.xsl,v 1.2 2008/10/04 12:43:22 cweiske Exp $
+# Release: $Id: db4-upgrade.xsl,v 1.3 2008/10/04 13:55:54 cweiske Exp $
#
====================================================================== -->
@@ -299,7 +299,7 @@
<refsection>
<xsl:call-template name="copy.attributes"/>
- <xsl:if test="not(refsect1info|refsect2info|refsect3info|refsectioninfo)">
+ <xsl:if test="not(refsect1info|refsect2info|refsect3info|refsectioninfo) and
(title|titleabbrev|subtitle)">
<info>
<xsl:apply-templates select="title" mode="copy"/>
<xsl:apply-templates select="titleabbrev" mode="copy"/>