XSD to Ecore: Prevent generation of w3 schemas [message #1070696] |
Thu, 18 July 2013 13:44 |
John M. Messages: 198 Registered: July 2010 |
Senior Member |
|
|
Hello,
I have a xsd file, which I want to migrate to Ecore. Works fine so far, but it always creates models for http://www.w3.org/XML/2001/schema and http://www.w3.org/XML/1998/namespace.
!ENTRY org.eclipse.emf.ecore 2 0 2013-07-18 15:41:28.047
!MESSAGE Both 'ProcessAnalyzerModel' and 'org.eclipse.emf.ecore' register a package for 'http://www.w3.org/XML/1998/namespace'
Is there no way to say Ecore, that it should use the given one from org.eclipse.emf.ecore?
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://xmlns.deort.com/wb/process/2003"
elementFormDefault="qualified">
<import namespace="http://www.w3.org/2001/XMLSchema"/>
[Updated on: Thu, 18 July 2013 13:54] Report message to a moderator
|
|
|
|
|
|
|
Re: XSD to Ecore: Prevent generation of w3 schemas [message #1070742 is a reply to message #1070735] |
Thu, 18 July 2013 15:13 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
John,
It's very uncommon that the schema for schemas would be imported. Using
XML Schema types don't requiring importing the schemas for schema's
itself. The XML namespace schema is quite commonly imported, which is
why we have a reusable generated model for it.
On 18/07/2013 5:00 PM, John M. wrote:
> Okay I think we are talking past each other. I haven't noticed the
> possibility to import the given emf namespace model.
> But after you mentioned it, I found the option.
>
> I have imported schemas as you recommended. :)
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04301 seconds