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 3087 - XQTSResult.xsd: don't use anonymous types
Summary: XQTSResult.xsd: don't use anonymous types
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: Other Linux
: P2 enhancement
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 18:28 UTC by Frans Englich
Modified: 2006-04-13 17:41 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-04-05 18:28:40 UTC
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
Comment 1 Frans Englich 2006-04-06 16:21:22 UTC
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>
Comment 2 Andrew Eisenberg 2006-04-13 17:41:07 UTC
I've made the change that you suggested.