Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » BaseType of a underived ComplexType
BaseType of a underived ComplexType [message #587723] Wed, 26 May 2004 20:24
Eclipse User
Originally posted by: comfortably007numb-python.yahoo.com

Hi,

I am trying to visit a schema as a tree. During the visit, the
following procedure is called to visit complex type definition.

visit(XSDComplexTypeDefinition type) {
visit(type.getBaseTypeDefinition());
......
}

However, the same method is called recursively again with the same
argument. In short, type.getBaseTypeDefinition() returned the object
referred to by variable type. Is this the intended behavior? Or a bug
in XSD? Or am I missing something?

According to XSD specs, it should return the extension/restriction
parent of the object bound to type and, if none exists, it should be
anyType (as it is the root of the Type Hierarchy). Is this so? Or am I
misreading the specs?

waiting for reply,

--

Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad
Previous Topic:Resource notifications
Next Topic:Schema has not been resolved
Goto Forum:
  


Current Time: Fri Aug 22 17:47:32 EDT 2014

Powered by FUDForum. Page generated in 0.01459 seconds