http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2575

*** shadow/2575 Wed Jul 11 08:24:11 2001
--- shadow/2575.tmp.9671        Wed Jul 11 08:24:11 2001
***************
*** 0 ****
--- 1,65 ----
+ +============================================================================+
+ | Incorrect Analysis of Derived Types                                        |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2575                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Samples                 |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                         |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Running DOMWriter, I get the following incorrect schema error:
+ 
+ [Error] submit.xml:7:67: Schema error: Element Barcode has a type whose base is
+ http://www.CIP4.org/JDFSchema_1,EventDetails; this basetype does not derive from
+  the type of the element at the head of the substitution group.
+ 
+ The type EventDetails *does* derive from the type of the element at the head of 
+ the substitution group.
+ 
+ <element name="Barcode" type="jdf:Barcode" 
+ substitutionGroup="jdf:NotificationDetails"/>
+ <complexType name="Barcode">
+    <annotation>
+       <documentation>A barcode has been scanned.</documentation>
+    </annotation>
+    <complexContent>
+       <extension base="jdf:EventDetails">
+          <attribute name="Barcode" type="string" use="required">
+             <annotation>
+                <documentation>Contains the scanned barcode. 
+ Required.</documentation>
+             </annotation>
+          </attribute>
+       </extension>
+    </complexContent>
+ </complexType>
+ 
+ <complexType name="EventDetails" abstract="true">
+    <annotation>
+       <documentation>For each named event of class "Event", a type is derived 
+ from
+       this abstract class to provide the data needed to handle that 
+ event.</documentation>
+    </annotation>
+    <complexContent>
+       <extension base="jdf:NotificationDetails"/>
+    </complexContent>
+ </complexType>
+ 
+ <element name="NotificationDetails" type="jdf:NotificationDetails" 
+ abstract="true"/>
+ <complexType name="NotificationDetails" abstract="true">
+    <annotation>
+       <documentation>For each named event, a class is derived from this abstract
+       NotificationDetails class to provide the data needed to handle that type 
+ of
+       named event.</documentation>
+    </annotation>
+ </complexType>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to