Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [XPAND] Problem with token names
[XPAND] Problem with token names [message #810707] Thu, 01 March 2012 13:07 Go to next message
Necip Karakas is currently offline Necip KarakasFriend
Messages: 4
Registered: March 2012
Junior Member
Hi,

I am trying to convert Xml file using Xpand template.
I have in my Xml "If" node and if I try to reference this element in xpt file, I get error "no viable alternative at input 'if'".

The Xpt file looks like:

«IMPORT hmiMetaModel»
«IF this.hmiMetaModel.if !=null-»
«EXPAND ifCondition FOREACH this.hmiMetaModel.If
«ENDIF»

I can not change the Xml format.
I think the possible reason for the problem is that, it interprets the "if" as tokenName in XpandParser class. Is there any possible solution for that?

thanks
Re: [XPAND] Problem with token names [message #810835 is a reply to message #810707] Thu, 01 March 2012 15:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Did you try to use ^if

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [XPAND] Problem with token names [message #810848 is a reply to message #810835] Thu, 01 March 2012 16:04 Go to previous message
Necip Karakas is currently offline Necip KarakasFriend
Messages: 4
Registered: March 2012
Junior Member
Thank you very much. It solved my problem.
Previous Topic:[MWE,JET] no auto complete in either?
Next Topic:[Acceleo] quick question on acceleo
Goto Forum:
  


Current Time: Fri Mar 29 07:09:16 GMT 2024

Powered by FUDForum. Page generated in 0.03327 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top