Refactoring xml Mps25 to Mps3

Hi Mps-Team,

i m just switching our languages from mps25 to mps3. So far, everything worked out great. There is just one language, which is simply generating xml with the old MPS25 language xmlInternal. When opening the generator in MPS3, the xml does not get converted ... i suppose it should be converted to the new xml language somehow....

Is there no support for a refactoring. Do i have to write the generator in with the new xml language in mps 3 again?

Best,
Dan
5 comments
Interestingly, with the XML Language in MPS3 the Concept ContentList disappeared...

so i m wondering how i can built a list of some xml parts to make the generated conditionally with an $IF$? I do not have to place the $IF$ on each node, right?

Thanks for the support,
Dan
0
Hi, Daniel!

If you are talking about "olsolete" XML language, then it's available as a part of additional "old" languages pack. Please let me know if you need it and I'll publish corresponding jar file with all necessary languages.

In general, it's good idea to move on to "new" XML language now (was included into MPS distribution starting from 2.5 release, AFAIR)
0
Hi Alex,

thanks for your comments on the old xml. I managed to write a language to transform the obsolete XML into concepts of the new xml. What is still missing is a kind of "content list" concept (see my comment above). How can i, e.g. use a $IF$ on more than one xml elements?

Best,
Daniel
0
Hi, Daniel!

I think you need to place $IF$ on each node now or extract corresponding list of nodes into a separate template, $CALL$ it from the original one and put a condition upon this call. In this case extracted template should have several template fragments.
0
Okay,

i see. It s a pitty, that clamping some conceptes is no longer possible in xml..

Thanks for the support!!
0

Please sign in to leave a comment.