|Questions about XSD transformation [message #602288]
||Fri, 13 April 2007 10:33
Originally posted by: gabriel.goic.apec.fr|
Discovering the possibilities of model transformation, I want to add
some platform independency to my Java applications, and thus I want to
ask some simple questions, please find them numbered below.
One of these applications is a simple Web Services-based one, which
converts XML flow inputs to XML flow outputs. I think both can be
considered as models, as they reference their own metamodel : some XSD
files referencing XMLSchema.xsd for the input, some XML files
referencing a custom DTD file for the output.
1) XMLSchema.xsd being an ontology (defines itself) referenced by
metamodels, is it a metametamodel? if yes, how is it related to MOF? I
thought MOF was the only metametamodel but I may be wrong
At the time being, I use Sun's JAXWS & JAXB 2.1 to get the XSD
metamodels converted to Java classes, and then I am able to write
transformation rules programatically to get the input flow (as a Java
object) translated into an output as a Java object.
So, willing to untie business value (i.e these transformation rules)
from technology-specific aspects, I came to the idea of writing the
rules with a tool like ATL (to get a transformation model that would be
the real value of the organization), and then use some code generator to
make it executable on a Java platform.
But I found very few (if any) examples of working with XSD files and
putting the transformation rules at runtime execution inside a JVM
2) Does this kind of mechanism correspond to what is called "model2text"
3) Can this approach be called MDE (Model-driven engineering) ? or is
the name only dedicated to transforming PIM (platform-independent
models) into PSM (platform-specific models), for example starting from
UML and refining it until you get some code ?
4) What could be the quickest way to get things done, in terms of tools
to write transformation rules and generate Java code from it, possibly
without having to rewrite the entire XSD structure in a proprietary
format (like KM3 for ATL) ?
Many thanks for your answers
Powered by FUDForum
. Page generated in 0.01859 seconds