https://bugzilla.wikimedia.org/show_bug.cgi?id=35264

       Web browser: ---
             Bug #: 35264
           Summary: Wrong type used for <ns> in export-0.6.xsd
           Product: MediaWiki
           Version: 1.20-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Export/Import
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Created attachment 10249
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10249
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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to