This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9890 - invalid XQTSResult.xsd schema
Summary: invalid XQTSResult.xsd schema
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P4 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 13:05 UTC by Matthias Brantner
Modified: 2010-06-15 14:26 UTC (History)
1 user (show)

See Also:


Attachments

Description Matthias Brantner 2010-06-09 13:05:07 UTC
It seems that the XML schema for validating test suite result submissions contains an error.

When validating Zorba's submission (using XQTS_current.zip as of June 9th), I get the following error from xmllint:

XQTSResult.xsd:11: element complexType: Schemas parser error : complex type 'commentType': The content model is not determinist.
Comment 1 Andrew Eisenberg 2010-06-09 15:41:32 UTC
Interesting. I receive no errors for this schema using ant's xmlvalidate.

I've modified the definition of commentType to be the following: 

   <xsd:complexType name="commentType">
      <xsd:sequence minOccurs="1" maxOccurs="unbounded">
         <xsd:choice>         
            <xsd:element ref="xqtsr:p" />
            <xsd:any namespace="##other" processContents="skip" />
            <xsd:any namespace="##local" processContents="skip" />
         </xsd:choice>
      </xsd:sequence>
   </xsd:complexType>


Please close this bug report if you are satisfied with this resolution.
Comment 2 Matthias Brantner 2010-06-09 16:22:43 UTC
Thanks but with this change I still get the same error (The content model is not determinist.)
Comment 3 Andrew Eisenberg 2010-06-15 14:05:09 UTC
I've modified p and commentType as follows:

   <xsd:element name="p">
      <xsd:complexType mixed="true">
         <xsd:sequence>
            <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="skip" />
         </xsd:sequence>
      </xsd:complexType>
   </xsd:element>

   <xsd:complexType name="commentType" mixed="true">
      <xsd:sequence minOccurs="0" maxOccurs="unbounded">
         <xsd:sequence>         
            <xsd:element ref="xqtsr:p" />
         </xsd:sequence>
      </xsd:sequence>
   </xsd:complexType>


This validates the results that I have previously received. I expect that this will remove the xmllint error that you have been getting.  

Please close this bug report if you are satisfied with this resolution.
Comment 4 Matthias Brantner 2010-06-15 14:26:20 UTC
I checked and can confirm that this solution works.