You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/10 18:49:11 UTC

DO NOT REPLY [Bug 5788] New: - Attribute wildcard error reported

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=5788>.
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=5788

Attribute wildcard error reported

           Summary: Attribute wildcard error reported
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: PC
               URL: http://http://
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mfeblowitz@frictionless.com


Xerces reports the following error:

[Error] ToonWorldProcessPurchaseOrder.xml:57:42: cvc-complex-type.3.2.2: 
Attribute 'qualifyingAgency' is not valid respect to the attribute wildcard of 
Elment 'AddressId'

when a particular element derives its type by extension:

	<xs:element name="AddressId" minOccurs="0" maxOccurs="unbounded">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="AddressId"/>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>

but the error goes away when that type is merely referenced:

	<xs:element name="AddressId" type="AddressId" minOccurs="0" 
maxOccurs="unbounded">


Does this problem arise due to the attempt to derive by extension, or does it 
look legit?

Note that there is nothing there that actually extends the type AddressId � the 
derivation by extension is there only as the result of inadvertently setting 
XML Spy's derivedBy to extension (that one gesture transforms the source from 
the latter to the former).

FYI, the AddressId type is defined as:

	<xs:complexType name="AddressId">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute name="qualifyingAgency" 
type="AddressQualifyingAgency"/>
				<xs:attribute name="qualifyingAgencyOther" 
type="xs:string"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>

Thanks,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org