[hibernate-commits] Hibernate SVN: r16007 - validator/trunk/tck-utils/api/src/main/resources.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Feb 20 07:39:56 EST 2009


Author: pete.muir at jboss.org
Date: 2009-02-20 07:39:56 -0500 (Fri, 20 Feb 2009)
New Revision: 16007

Modified:
   validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd
Log:
Fix xsd for updates

Modified: validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd
===================================================================
--- validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd	2009-02-20 09:12:05 UTC (rev 16006)
+++ validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd	2009-02-20 12:39:56 UTC (rev 16007)
@@ -2,7 +2,10 @@
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified"
            targetNamespace="http://jboss.com/products/webbeans/tck/audit"
-           xmlns:audit="http://jboss.com/products/webbeans/tck/audit">
+           xmlns:audit="http://jboss.com/products/webbeans/tck/audit"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
+           >
            
   <xs:element name="specification">
     <xs:annotation>
@@ -18,6 +21,9 @@
   </xs:element>           
   
   <xs:element name="section">
+    <xs:annotation>
+      <xs:documentation>Each section of the specification should be identified and entered</xs:documentation>
+    </xs:annotation>
     <xs:complexType>
       <xs:sequence>
         <xs:element minOccurs="0" maxOccurs="unbounded" ref="audit:assertion"/>
@@ -27,22 +33,48 @@
   </xs:element>
 
   <xs:attributeGroup name="attlist.section">
-    <xs:attribute name="id" type="xs:string"/>
-    <xs:attribute name="title" type="xs:string"/>
+    <xs:attribute name="id" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>The section number</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="title" type="xs:string">
+     <xs:annotation>
+         <xs:documentation>The section title</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
   </xs:attributeGroup>  
     
   <xs:element name="assertion">
     <xs:complexType>
       <xs:sequence>
-        <xs:element minOccurs="1" maxOccurs="1" ref="audit:text"/>
-        <xs:element minOccurs="0" maxOccurs="1" ref="audit:note"/>
+        <xs:element minOccurs="1" maxOccurs="1" ref="audit:text">
+           <xs:annotation>
+             <xs:documentation>The specification text that this assertion represents. You can include highlighting such as _highlight_ or ~score out~.</xs:documentation>
+           </xs:annotation>
+        </xs:element>
+        <xs:element minOccurs="0" maxOccurs="1" ref="audit:note">
+          <xs:annotation>
+             <xs:documentation>A note on the assertion, for example a justifaction for marking this assertion untestable</xs:documentation>
+           </xs:annotation>
+        </xs:element>
       </xs:sequence>
       <xs:attributeGroup ref="audit:attlist.assertion"/>
     </xs:complexType>
   </xs:element>
   
   <xs:attributeGroup name="attlist.assertion">
-    <xs:attribute name="id" type="xs:string"/>    
+    <xs:attribute name="id" type="xs:string"/>
+    <xs:attribute name="testable" type="xs:boolean" default="true">
+      <xs:annotation>
+        <xs:documentation>By default true, set to false if this test is untestable. The coverage report will then not count it as untested.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="implied" type="xs:boolean" default="true">
+      <xs:annotation>
+        <xs:documentation>Some assertions are often implied by the specification (for example inversions of statments), mark an assertion as implied using this attribute.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
   </xs:attributeGroup>
   
   <xs:element name="text">




More information about the hibernate-commits mailing list