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 08:07 Go to next message
Necip Karakas is currently offline Necip Karakas
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 10:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5849
Registered: July 2009
Senior Member
Did you try to use ^if
Re: [XPAND] Problem with token names [message #810848 is a reply to message #810835] Thu, 01 March 2012 11:04 Go to previous message
Necip Karakas is currently offline Necip Karakas
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: Sun Apr 20 12:29:15 EDT 2014

Powered by FUDForum. Page generated in 0.02259 seconds