Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 13 11:25:33 EDT 2025

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

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

Back to the top