W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2016

[Bug 29658] New: [SER31] Problem with schema

From: <bugzilla@jessica.w3.org>
Date: Tue, 24 May 2016 13:47:43 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29658-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29658

            Bug ID: 29658
           Summary: [SER31] Problem with schema
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization 3.1
          Assignee: cmsmcq@blackmesatech.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Using the Microsoft schema validator (System.Xml.Schema), an error is reported
trying to load the serialization schema

"It is an error if a union type has a member with variety union and this member
cannot be substituted with its own members. This may be due to the fact that
the union member is a restriction of a union with facets."

It appears to be grumbling about the pattern facet in:

   <xs:simpleType name="method-type">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="html"/>
          <xs:enumeration value="text"/>
          <xs:enumeration value="xml"/>
          <xs:enumeration value="xhtml"/>
          <xs:enumeration value="json"/>
          <xs:enumeration value="adaptive"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:simpleType>
        <xs:restriction base="output:QName-or-EQName">
          <!--* value must have non-null namespace URI *-->
          <xs:pattern value="(.*:.*)|(.*\{.+\}.*)"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>

I'm not certain whether this is a problem with the schema or with the MS
implementation.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 24 May 2016 13:47:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 24 May 2016 13:47:46 UTC