Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [JET2]
[JET2] [message #34471] Sun, 30 September 2007 01:00 Go to next message
Eclipse UserFriend
Originally posted by: felouerkhaoui.gmail.com

Hello,

Is it possible to get a value of a variable in the ws:workspace ?

Example :

<c:setVariable select="/Domaine/@name" var="myVar"/>

<ws:project name="<get myVar value>">

</ws:project>


Thanks
Re: [JET2] [message #34505 is a reply to message #34471] Mon, 01 October 2007 12:18 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Fatima:

Yes. The and XML syntax does not permit embedding on XML tag inside another.
So, as an alternative, JET lets you place an embedded XPath expression in
any tag attribute, when the expression is enclosed in { and }. So, instead
of:

<ws:project name="<c:get select="$myvar"/>">

You do:

<ws:project name="{$myVar}">

Paul
"Fatima Zohra" <felouerkhaoui@gmail.com> wrote in message
news:9d50995c851b4cdb13914b68b2144050$1@www.eclipse.org...
> Hello,
> Is it possible to get a value of a variable in the ws:workspace ?
>
> Example :
> <c:setVariable select="/Domaine/@name" var="myVar"/>
>
> <ws:project name="<get myVar value>">
>
> </ws:project>
>
>
> Thanks
>
Re: [JET2] [message #34604 is a reply to message #34505] Mon, 01 October 2007 16:20 Go to previous message
Eclipse UserFriend
Originally posted by: felouerkhaoui.gmail.com

Thanks a lot.
Previous Topic:Create a command that generate code
Next Topic:[JET2] double c:iterate
Goto Forum:
  


Current Time: Thu Apr 25 16:34:21 GMT 2024

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

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

Back to the top