Re: Pyrus: xsd is broken
| From: | Christian Weiske | Date: | Thu, 11 Mar 2010 07:36:15 +0000 |
| Subject: | Re: Pyrus: xsd is broken | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53317@lists.php.net to get a copy of this message | ||
Hi all,
> The package-2.0.xsd is broken: No directories without files are
> allowed.
> Short: Currently it is not allowed to have <dir> elements without a
> single <file> in them.
Patch to fix this:
diff --git a/package-2.0.xsd b/package-2.0.xsd
index 4de755f..dc76ef2 100644
--- a/package-2.0.xsd
+++ b/package-2.0.xsd
@@ -155,11 +155,11 @@
<xs:complexType>
<xs:choice>
<xs:sequence maxOccurs="unbounded">
- <xs:element ref="dir" maxOccurs="unbounded"/>
- <xs:element ref="file" maxOccurs="unbounded"/>
+ <xs:element ref="dir" minOccurs="1"
maxOccurs="unbounded"/>
+ <xs:element ref="file" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:sequence maxOccurs="unbounded">
- <xs:element ref="file" maxOccurs="unbounded"/>
+ <xs:element ref="file" minOccurs="1"
maxOccurs="unbounded"/>
<xs:element ref="dir" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:choice>
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc