Bug #1847 [Bgs->Opn]: package-1.0 dtd

From: Date: Mon, 12 Jul 2004 09:27:54 +0000
Subject: Bug #1847 [Bgs->Opn]: package-1.0 dtd
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4583@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=1847&edit=1 ID: 1847 User updated by: ludoo at php dot net Reported By: ludoo at php dot net -Status: Bogus +Status: Open Type: Bug Package: Documentation PHP Version: Irrelevant New Comment: a simple check: - get the DB package.xml file - add a DTD declaration to it pointing to the package-1.0 dtd - run xmllint --noout --valid package.xml - observe lots of errors scroll by, the last one being: package.xml:166: element package: validity error : Element package content does not follow the DTD, expecting (name | summary | description | license | maintainers | release | changelog), got (name summary description license maintainers release ) simple fix: allow more than one child in the package element: <!ELEMENT package (name|summary|description|license|maintainers|release|changelog)+> xmllint --noout --valid package.xml now gives lots of errors for missing attribute declarations, but the package element error is gone a better fix would be something like this: <!ELEMENT package (name,summary,description,license,maintainers,release+,changelog*)> What's the use of a dtd if: a) it does not work b) nobody verifies their package.xml with it Previous Comments: ------------------------------------------------------------------------ [2004-07-12 05:17:41] mike at php dot net Why should multiple elements of these be allowed? ------------------------------------------------------------------------ [2004-07-11 18:51:25] ludoo at php dot net Description: ------------ I guess there's a bug in the package-1.0 DTD, the declaration for the package element is missing a +: <!ELEMENT package (name|summary|description|license|maintainers|release|changelog)> should be <!ELEMENT package (name|summary|description|license|maintainers|release|changelog)+> not sure if this goes in the Documentation category..... ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=1847&edit=1

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