FAQ
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).

Search Discussions

  • Cellog at Jan 28, 2006 at 11:55 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=6337&edit=1

    ID: 6337
    Updated by: cellog@php.net
    Reported By: erik-pear at 29a dot nl
    -Status: Open
    +Status: Closed
    Id: 6337
    Type: Bug
    Package: Web Site
    Operating System: Irrelevant
    PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: cellog
    New Comment:

    This bug has been fixed in CVS.

    If this was a documentation problem, the fix will appear on
    pear.php.net by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2005-12-23 05:29:11] erik-pear at 29a dot nl

    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).

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-webmaster @
categoriesphp
postedDec 23, '05 at 10:29a
activeJan 28, '06 at 11:55p
posts2
users2
websitepear.php.net

2 users in discussion

Erik-pear at 29a dot nl: 1 post Cellog: 1 post

People

Translate

site design / logo © 2018 Grokbase