Page MenuHomePhabricator

Wrong type used for <ns> in export-0.6.xsd
Closed, ResolvedPublic

Description

The ns element should be nonNegativeInteger, not positiveInteger

The export format XSD defines the <ns> element as

<!-- Namespace in canonical form -->
<element name="ns" type="positiveInteger"/>

But, as a namespace quite often (;-)) is zero, which is _not_ a positive integer (and is not accepted for xs:positiveInteger, see http://www.w3.org/TR/xmlschema-2/#positiveInteger), this is wrong, an XML file using “<ns>0</ns>” does not validate. You want to use nonNegativeInteger instead.


Version: 1.20.x
Severity: minor

Attached:

Details

Reference
bz35264

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:11 AM
bzimport set Reference to bz35264.