Bug #6337 [NEW]: package.xml (2.0) does not validate with more than 1 <release> in <changelog>

From: Date: Fri, 23 Dec 2005 10:29:11 +0000
Subject: Bug #6337 [NEW]: package.xml (2.0) does not validate with more than 1 <release> in <changelog>
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4679@lists.php.net to get a copy of this message
From: erik-pear at 29a dot nl Operating system: Irrelevant PHP version: Irrelevant Package: Web Site Bug Type: Bug Bug description: package.xml (2.0) does not validate with more than 1 <release> in <changelog> Description: ------------ The package.xml file (version 2.0) does not validate against the current schema (http://pear.php.net/dtd/package-2.0.xsd) if you have more than one <release> child in the <changelog> section. This is also the case with the example file on http://pear.php.net/manual/en/guide.developers.package2.php so I guess the problem lies in the schema. Test script: --------------- Just try the demo package file on http://pear.php.net/manual/en/guide.developers.package2.php. Possible solution: I'm not an expert with XSD and I have not tested this, but I guess line 409: <xs:element name="release"> should be changed to: <xs:element name="release" minOccurs="1" maxOccurs="unbounded"> In the xsd on http://pear.php.net/dtd/package-2.0.xsd. Expected result: ---------------- No validation errors Actual result: -------------- Validation error on the second <release> element in the <changelog> section (line 220 in the example file). -- Edit bug report at http://pear.php.net/bugs/bug.php?id=6337&edit=1 --

« previous php.pear.webmaster (#4679) next »