Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Inheritance Problem
Inheritance Problem [message #598013] Tue, 25 April 2006 02:09
Gunnar Wagenknecht is currently offline Gunnar Wagenknecht
Messages: 451
Registered: July 2009
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: Sat Sep 20 10:13:25 GMT 2014

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

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