Hi,
I tried to use mw_base_extension to define amw model. left and right
model are just like Author and Person example and use the below atl to
make transformation. please forget the mean of this atl(I just want to
try). It does not work with my own amw, left ,right model(there is a
type WLink in my own amw model).but if i change these from example of
AMWtoXSLT, i mean, i just change amw,left,right model from the original
example, then this atl works.I don't know,whether the Problem is from
mwcore?
I have seen the mwcore.ecore, which has dbtoxmlweavingmm package, I
think, this is some especial for the example from amw examples.
whatever there are too few Documents about,how to write amw to anther
models.
Thanks
wg
module t1; -- Module Template
create OUT : XSLT from IN : AMW, left: MOF, right: MOF;
rule Link {
from
amw : AMW!WLink
to
xsl : XSLT!ApplyTemplatesStat (
select <-amw.end->select( e | e.oclIsTypeOf(AMW!Left))->first()
)
}