Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Help with ComplexTypes
Help with ComplexTypes [message #586599] Tue, 04 May 2004 19:19
Lance Phillips is currently offline Lance PhillipsFriend
Messages: 210
Registered: July 2009
Senior Member
I'm trying to create a complex type with simple content. I've copied the
creation logic as close to exactly as possible from the XsdProtypicalSchema.
However, when I write out my xsd it gets written out with complex content.
Any ideas? Here is my code block...

final XSDSimpleTypeDefinition xsdDt = resolveSimpleDatatype(eObject, value);
if (xsdDt != null) {

((XSDComplexTypeDefinition)eObject).setDerivationMethod(XSDD erivationMethod.
EXTENSION_LITERAL);
((XSDComplexTypeDefinition)eObject).setBaseTypeDefinition(xs dDt);
((XSDComplexTypeDefinition)eObject).setContent(xsdDt);
}

And here is the resulting ComplexType....
<xs:complexType abstract="false" mixed="false" name="gYearMonth">
<xs:complexContent>
<xs:extension base="xs:gYearMonth">
<xs:attributeGroup ref="Q1:commonAttributes"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

thanks,

lp
Previous Topic:Training on Eclipse
Next Topic:Help with ComplexTypes
Goto Forum:
  


Current Time: Mon Oct 26 02:34:33 GMT 2020

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

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

Back to the top