Inheritance Problem [message #598013] |
Tue, 25 April 2006 02:09 |
|
Hi!
I'm trying to define a simple inheritance model from a web tutorial. I
failed using the XSD sample editor (2.2 RC1), i.e. it didn't let me
define the base type for the extension (it was set to anyType).
Thus, I took the snippet and copied it into a sample schema. But I think
there is something wrong because I get an error annotation that the base
element could not be found.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:this="http:///test/myschema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http:///test/myschema">
<xsd:complexType name="Address">
<!-- stuff -->
</xsd:complexType>
<xsd:complexType name="USAddress">
<xsd:complexContent>
<xsd:extension base="Address">
<!-- stuff -->
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
As this is my first step in this stuff I probably doing something wrong
here. Any ideas what?
Cu, Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds