This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
It would be practical if XQTSResult.xsd did not use use anonymous types(the "russian doll" approach), such that extensions are possible. If extensions are possible, implementations can use the format and extend it for their purposes. For example, to let the output include a rendering of the AST or whether a test case failed at compile time or runtime. I will attach a patch which achieves what I refer to. It might be useful as it is, or as an inspiration, etc. Regards, Frans
Attaching files appears to not work for at least me, so here the patch is pasted: --- XQTSResult.old.xsd 2005-10-11 21:34:28.000000000 +0000 +++ XQTSResult.xsd 2006-04-05 18:33:53.000000000 +0000 @@ -285,37 +285,38 @@ XQTSCatalog. --> - <xsd:element name="test-case"> - <xsd:complexType> - <xsd:attribute - name="name" - type="xsd:string" - use="required" /> - <xsd:attribute - name="result" - use="required"> - <xsd:simpleType> - <xsd:restriction - base="xsd:string"> - <xsd:enumeration - value="pass" /> - <xsd:enumeration - value="fail" /> - <xsd:enumeration - value="not applicable" /> - <xsd:enumeration - value="not tested" /> - <xsd:enumeration - value="cannot tell" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - <xsd:attribute - name="comment" - type="xsd:string" - use="optional" /> - </xsd:complexType> - </xsd:element> + <xsd:simpleType name="resultStatusType"> + <xsd:restriction + base="xsd:string"> + <xsd:enumeration + value="pass" /> + <xsd:enumeration + value="fail" /> + <xsd:enumeration + value="not applicable" /> + <xsd:enumeration + value="not tested" /> + <xsd:enumeration + value="cannot tell" /> + </xsd:restriction> + </xsd:simpleType> + <xsd:complexType name="test-caseType"> + <xsd:attribute + name="name" + type="xsd:string" + use="required" /> + <xsd:attribute + name="result" + type="xqtsr:resultStatusType" + use="required"> + </xsd:attribute> + <xsd:attribute + name="comment" + type="xsd:string" + use="optional" /> + </xsd:complexType> -</xsd:schema> \ No newline at end of file + <xsd:element name="test-case" type="xqtsr:test-caseType"/> + +</xsd:schema>
I've made the change that you suggested.