Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Inheritance Problem
Inheritance Problem [message #598013] Tue, 25 April 2006 02:09
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

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/
Previous Topic:XML Generation and element hiding
Next Topic:Inheritance Problem
Goto Forum:
  


Current Time: Fri Apr 19 11:17:58 GMT 2024

Powered by FUDForum. Page generated in 0.01845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top