BaseType of a underived ComplexType [message #587723] |
Thu, 27 May 2004 00: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
|
|
|
Powered by
FUDForum. Page generated in 0.03373 seconds