DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4417>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

<redefine> not working correctly

           Summary: <redefine> not working correctly
           Product: Xerces2-J
           Version: 2.0.0 [alpha]
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This is really in 1.4.3.

When I redefine types from file A.xsd and also include file A.xsd, Xerces 
reports duplicate elements. (Removing the include fixes this).

Also, elements defined in the redefine are not recognized:

[Error] process-po-123.xml:61:28: Element type "TheOnlyAllowedElement" must be 
declared.
[Error] process-po-123.xml:63:24: Element type "star:DealerName" must be 
declared.
[Error] process-po-123.xml:64:24: Element type "star:DealerRank" must be 
declared.
[Error] process-po-123.xml:65:25: The content of element type "star:Dealership" 
must match "(DealerName,DealerRank)".
[Error] process-po-123.xml:67:21: The content of element type "ExtensionArea" 
must match "(TheOnlyAllowedElement)".

The redefinition redefines complexType PurchaseOrderExtensionArea to be

<xs:complexType name="PurchaseOrderExtensionArea">
        <xs:complexContent>
                <xs:restriction base="PurchaseOrderExtensionArea">
                        <xs:sequence>
                                <xs:element name="TheOnlyAllowedElement">
                                        <xs:complexType>
                                                <xs:sequence>
                                                        <xs:element 
ref="star:Dealership"/>
                                                </xs:sequence>
                                        </xs:complexType>
                                </xs:element>
                        </xs:sequence>
                </xs:restriction>
        </xs:complexContent>
</xs:complexType>

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

Reply via email to