Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » BaseType of a underived ComplexType
BaseType of a underived ComplexType [message #587723] Thu, 27 May 2004 00:24
Eclipse UserFriend
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 Apr 26 05:34:42 GMT 2024

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

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

Back to the top