General XML injection to XML metamodel with XMI encoding [message #95927] |
Sun, 23 November 2008 23:00 |
FermÃn Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
Given this is my first post to the m2m newsgroup, let me briefly
introduce myself: my name is Fermín Galán and I'm working with the ATL
Eclipse plugin to develop model transformations for my Ph.D work. I've
recently started to work with the tool, so please forgive me if I ask
some stupid question :)
I'm working on transformations involving XML so I've found very useful
the XML metamodels that comes with several examples in the
http://www.eclipse.org/m2m/atl/atlTransformations webpage (for example,
in XSTL2XQuery or KM32XML examples).
However, these examples let apart the problem of injecting and
extraction of XML documents to a representation of the document
conforming to the XML metamodel and encoded in XMI ("The example file
tr.xsl-XML.xmi has been injected by a program from the file tr.xsl" but
not detailing the program or "Injection/extraction is not detailled in
this example"). In other words, how to transform and arbitrary XML file
(composed by tags, attributes, and so on) in a XMI file conforming to
the XML metamodel (injection), and viceversa (extraction). I think that
injection is a quite important step, because it prepares the XML model
in an encoding format (XMI) that is understandable by ATL to apply model
transformations.
So, is there any general way of performing such injection/extraction
(maybe with a functionality in the ATL plugin or other Eclipse plugin
which I don't know) or maybe with a program or tool, please? I've
googled the Internet looking for something like that but I've found
anything so I'm posting to the newsgroup for help :)
Thank very much in advance!
Best regards,
------
Fermín
PD. I wonder if the XML metamodel in the ATL examples I mention
correspond to an standard metamodel or otherwise documented in any
formal document. Anybody knows?
|
|
|
Re: General XML injection to XML metamodel with XMI encoding [message #97390 is a reply to message #95927] |
Tue, 23 December 2008 19:55 |
FermÃn Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
After some time dealing with the issue :), I've finally found a way of
extracting a model conforming to the XML metamodel to an actual XML
document (I haven't found yet how to do the oposite: inject a XML
document into a model conforming the XML metamodel in XMI).
The technique is based on an ATL query, and it is illustrated for
example in the following examples:
http://www.eclipse.org/m2m/atl/atlTransformations/#Grafcet2P etriNet
http://www.eclipse.org/m2m/atl/atlTransformations/MSOfficeEx celExtractor/ExampleMicrosoftOfficeExcelExtractor%5Bv00.01%5 D.pdf
Best regards,
------
Fermín
Fermín Galán Márquez escribió:
> Hi,
>
> Given this is my first post to the m2m newsgroup, let me briefly
> introduce myself: my name is Fermín Galán and I'm working with the ATL
> Eclipse plugin to develop model transformations for my Ph.D work. I've
> recently started to work with the tool, so please forgive me if I ask
> some stupid question :)
>
> I'm working on transformations involving XML so I've found very useful
> the XML metamodels that comes with several examples in the
> http://www.eclipse.org/m2m/atl/atlTransformations webpage (for example,
> in XSTL2XQuery or KM32XML examples).
>
> However, these examples let apart the problem of injecting and
> extraction of XML documents to a representation of the document
> conforming to the XML metamodel and encoded in XMI ("The example file
> tr.xsl-XML.xmi has been injected by a program from the file tr.xsl" but
> not detailing the program or "Injection/extraction is not detailled in
> this example"). In other words, how to transform and arbitrary XML file
> (composed by tags, attributes, and so on) in a XMI file conforming to
> the XML metamodel (injection), and viceversa (extraction). I think that
> injection is a quite important step, because it prepares the XML model
> in an encoding format (XMI) that is understandable by ATL to apply model
> transformations.
>
> So, is there any general way of performing such injection/extraction
> (maybe with a functionality in the ATL plugin or other Eclipse plugin
> which I don't know) or maybe with a program or tool, please? I've
> googled the Internet looking for something like that but I've found
> anything so I'm posting to the newsgroup for help :)
>
> Thank very much in advance!
>
> Best regards,
>
> ------
> Fermín
>
> PD. I wonder if the XML metamodel in the ATL examples I mention
> correspond to an standard metamodel or otherwise documented in any
> formal document. Anybody knows?
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds