Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Using JET2 <c:stringTokens
Using JET2 <c:stringTokens [message #8172] Thu, 29 March 2007 05:11 Go to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

Hi,

I struggling to use the function c:stringTokens as I can't seem to plugin a
string rather than a fixed string.

The rest is just cut and paste from the reference guide.

I just put in the ="<c:get select=$action/@expression/>"

Any help would be great.

<c:stringTokens string="<c:get select=$action/@expression/>"
name="currentString" delimitedBy=" ">

value: <c:get select="$currentString/@value"/>

index: <c:get select="$currentString/@index"/>

delimiter: <c:get select="$currentString/@delimiter"/>

first: <c:get select="$currentString/@first"/>

last: <c:get select="$currentString/@last"/>

</c:stringTokens>
Re: Using JET2 <c:stringTokens [message #8204 is a reply to message #8172] Thu, 29 March 2007 06:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

To add a bit. I also try using a dymanic XPath espression but with no
luck:-
<c:stringTokens string="{$action/@expression}" name="currentString"
delimitedBy=" ">



"Stu" <evaandoli@dodo.com.au> wrote in message
news:eufhr0$5d7$1@build.eclipse.org...
> Hi,
>
> I struggling to use the function c:stringTokens as I can't seem to plugin
> a string rather than a fixed string.
>
> The rest is just cut and paste from the reference guide.
>
> I just put in the ="<c:get select=$action/@expression/>"
>
> Any help would be great.
>
> <c:stringTokens string="<c:get select=$action/@expression/>"
> name="currentString" delimitedBy=" ">
>
> value: <c:get select="$currentString/@value"/>
>
> index: <c:get select="$currentString/@index"/>
>
> delimiter: <c:get select="$currentString/@delimiter"/>
>
> first: <c:get select="$currentString/@first"/>
>
> last: <c:get select="$currentString/@last"/>
>
> </c:stringTokens>
>
>
>
Re: Using JET2 <c:stringTokens [message #8234 is a reply to message #8204] Thu, 29 March 2007 12:23 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Stu:

Unfortunately, you have found a bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=179973

I have no work around at this point.

Paul

"Stu" <evaandoli@dodo.com.au> wrote in message
news:eufltj$7ft$1@build.eclipse.org...
> To add a bit. I also try using a dymanic XPath espression but with no
> luck:-
> <c:stringTokens string="{$action/@expression}" name="currentString"
> delimitedBy=" ">
>
>
>
> "Stu" <evaandoli@dodo.com.au> wrote in message
> news:eufhr0$5d7$1@build.eclipse.org...
>> Hi,
>>
>> I struggling to use the function c:stringTokens as I can't seem to plugin
>> a string rather than a fixed string.
>>
>> The rest is just cut and paste from the reference guide.
>>
>> I just put in the ="<c:get select=$action/@expression/>"
>>
>> Any help would be great.
>>
>> <c:stringTokens string="<c:get select=$action/@expression/>"
>> name="currentString" delimitedBy=" ">
>>
>> value: <c:get select="$currentString/@value"/>
>>
>> index: <c:get select="$currentString/@index"/>
>>
>> delimiter: <c:get select="$currentString/@delimiter"/>
>>
>> first: <c:get select="$currentString/@first"/>
>>
>> last: <c:get select="$currentString/@last"/>
>>
>> </c:stringTokens>
>>
>>
>>
>
>
Previous Topic:concatenation in JET2 in get default function
Next Topic:Re: Help with Help "Loading... please wait"
Goto Forum:
  


Current Time: Mon Nov 24 15:14:26 GMT 2014

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

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