Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » XSD -> ECORE conversion : problem with XSD inclusion
XSD -> ECORE conversion : problem with XSD inclusion [message #600610] Thu, 04 January 2007 10:49
Eclipse UserFriend
Originally posted by:


I'm creating an EMF project, and the ECORE model is imported from a XML
This XML schema includes another one like this:


<xs:schema xmlnss=""
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="template_declaration.xsd"/>
<xs:element name="TOTO">
<xs:element ref="TITI_1" minOccurs="0"/>
<xs:element ref="TITI_2" minOccurs="0"/>
<xs:attribute name="Name" use="required">

The ECORE model is generated successfully, but the Root package is
templateDeclaration whereas TOTO is expected.

I tried to avoid this, using ecore directives in the XSD to force the
generated package name. it gives something like this:

<xs:schema xmlns:xs=""
elementFormDefault="qualified" attributeFormDefault="unqualified"
<xs:include schemaLocation="template_declaration.xsd"/>

Now, a TOTOPackage interface is generated, that defines:

String eNAME = "TOTO";
String eNS_URI =
" file:/C:/DATA/WICO_TLS/CongaConfig/xsd/template_declaration. xsd ";
String eNS_PREFIX = "TOTO";

The URI is not correct: test.xsd is expected. Indeed, when I try to load a
XML resource, EMF tries to map the XML against the
template_declaration.xsd. And it fails.

Has anybody encountered this problem?

Previous Topic:Re: CompoundCommand failure results in "Transaction is already closed" IllegalStateExcepti
Next Topic:How can i set xmi:id in emf?
Goto Forum:

Current Time: Sun Feb 28 08:15:14 GMT 2021

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

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

Back to the top