extension

Hi, All,

I am trying to use Xerces XML Schema parser and found
that it seems the parser doesn't work with extension.
Specifically, in the following schema, element
ABConnect is defined to an extension of base type 
GenericAccountType, but when I parsed the schema, I
found the element ABConnect doesn't contain any info
in the base type, and when I debug the Xerces code
(addElemDecl in TraverseSchema) I noticed that the
scopeDefined for the elements in the base type is -2.

Anyone can give me suggestions what might go wrong?

Thanks much in advance.

Frank  

<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XML Spy v3.5 NT
(http://www.xmlspy.com)-->
<xsd:schema
targetNamespace="http://www.talaris.com/XMLSchema/printing/v1.0"
xmlns="http://www.talaris.com/XMLSchema/printing/v1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
	<!-- -->
	<!--xsd:include
schemaLocation="C:\work\temp\GenericServiceVoc.xsd"/-->
	<!-- -->
	<xsd:element name="ABConnect">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="GenericAccountType">
                              <!-- sequence>
 				          <xsd:element name="SimpleText"
type="xsd:string"/>
                              </sequence --> 
					<xsd:attribute name="accountStatus"
type="xsd:integer" use="optional"/>
					<xsd:attribute name="accountId" type="xsd:string"
use="optional"/>
				</xsd:extension>
		      </xsd:complexContent>
	      </xsd:complexType>
	</xsd:element>
	<!-- -->
	<xsd:complexType name="GenericAccountType">
		<xsd:annotation>
			<xsd:documentation>Different types of accounts use
different number of fields</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="description" type="xsd:string"
minOccurs="0"/>
			<xsd:element name="accountField" type="xsd:string"
maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Received on Sunday, 5 August 2001 17:32:47 UTC