Mapping in XML Schema. [message #209676] |
Tue, 28 October 2008 04:23  |
Eclipse User |
|
|
|
Hello everybody,
I am new with GMF, and I want to program a modeller (a little as UML class
diagramm).
After the modeling I want to make a mapping in XML Schema (XSD).
How can I do? I thought of programming a XSLT file or to use JET.
What advise me you? Have you other propositions?
Thank you for your help.
Pierre
|
|
|
|
|
Re: Mapping in XML Schema. [message #209908 is a reply to message #209898] |
Wed, 29 October 2008 11:32  |
Eclipse User |
|
|
|
Pierre,
Comments below.
Pierre wrote:
> Hello Alex,
>
> Thank you for your answer !
>
> I think that I don't completely understand your answer. If I have good
> understand, I can save a domain model with a custom XML Schema. But in
> Mindmap example the .mindmap file is already a XML Schema file?
No, it's a .xml file that conforms to a schema.
> With this way I obtain a XML Schema file (XXXX.xsd).
There's a MindMap.xsd, but the *.mindmap is an instance...
> But I have forgotten to say in the last message that my diagram models
> Business Objects (with class...) and I want a XSD file for each
> Business Object.
So you have some other model, like XSD, Ecore, or UML, that you want to
map to XSD. Perhaps that's similar to
org.eclipse.xsd.ecore.EcoreSchemaBuilder which converts and Ecore
instance to a corresponding XSD instance.
> What advise me you? I must a XSLT file too to seperate the XSD file
> into several XSD files.
Not sure I understand how the separate files issue comes up.
> I maybe badly expressed myself in my last message. I want to program a
> XML Schema (XSD) generator from a diagram.
That sounds a lot like EcoreSchemaBuilder, so maybe that's where you
want to look.
> This diagram models Business Objects and I want to generate a XSD file
> for each Business Object.
>
> Thank you for your help !
>
> Pierre
>
|
|
|
Powered by
FUDForum. Page generated in 0.07791 seconds