Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » iteration over an iterable object not a select
iteration over an iterable object not a select [message #47735] Wed, 16 July 2008 16:24 Go to next message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
I am loading multiple input files into a big input tree
I resorted to do a <c:load ...> inside a scriptlet loop
but I'd been happier if I could do a
<c:iterate ..>
where instead of an xpath select i could pass a {$variable} that is of
an iterable type (eg a String[] or a Set<String> ) ecc.
Re: iteration over an iterable object not a select [message #47764 is a reply to message #47735] Wed, 16 July 2008 18:26 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Edoardo:

Please submit an enhancement.

https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=peld er%40ca.ibm.com&blocked=&bug_file_loc=http%3A%2F%2F& amp;bug_severity=enhancement&bug_status=NEW&comment= &component=Jet&contenttypeentry=&contenttypemeth od=autodetect&contenttypeselection=text%2Fplain&data =&dependson=&description=&flag_type-1=X&flag _type-2=X&flag_type-4=X&flag_type-6=X&flag_type- 7=X&flag_type-8=X&form_name=enter_bug&keywords=& amp;maketemplate=Remember%20values%20as%20bookmarkable%20tem plate&op_sys=Windows%20XP&priority=P3&product=M2 T&qa_contact=&rep_platform=PC&short_desc=&ve rsion=unspecified

In the meantime, it is not hard to build a custom tag.

Paul

"Edoardo Comar" <ecomar@uk.ibm.com> wrote in message
news:g5l7bc$bjm$1@build.eclipse.org...
>I am loading multiple input files into a big input tree
> I resorted to do a <c:load ...> inside a scriptlet loop
> but I'd been happier if I could do a
> <c:iterate ..>
> where instead of an xpath select i could pass a {$variable} that is of an
> iterable type (eg a String[] or a Set<String> ) ecc.
>
Re: iteration over an iterable object not a select [message #47818 is a reply to message #47764] Thu, 17 July 2008 09:48 Go to previous messageGo to next message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
Paul Elder wrote:
> In the meantime, it is not hard to build a custom tag.

but it is even easier to use scriptlets :-)
Re: iteration over an iterable object not a select [message #47848 is a reply to message #47764] Thu, 17 July 2008 09:52 Go to previous message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
done
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241220

Paul Elder wrote:
> Edoardo:
>
> Please submit an enhancement.
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=peld er%40ca.ibm.com&blocked=&bug_file_loc=http%3A%2F%2F& amp;bug_severity=enhancement&bug_status=NEW&comment= &component=Jet&contenttypeentry=&contenttypemeth od=autodetect&contenttypeselection=text%2Fplain&data =&dependson=&description=&flag_type-1=X&flag _type-2=X&flag_type-4=X&flag_type-6=X&flag_type- 7=X&flag_type-8=X&form_name=enter_bug&keywords=& amp;maketemplate=Remember%20values%20as%20bookmarkable%20tem plate&op_sys=Windows%20XP&priority=P3&product=M2 T&qa_contact=&rep_platform=PC&short_desc=&ve rsion=unspecified
>
> In the meantime, it is not hard to build a custom tag.
>
> Paul
>
> "Edoardo Comar" <ecomar@uk.ibm.com> wrote in message
> news:g5l7bc$bjm$1@build.eclipse.org...
>> I am loading multiple input files into a big input tree
>> I resorted to do a <c:load ...> inside a scriptlet loop
>> but I'd been happier if I could do a
>> <c:iterate ..>
>> where instead of an xpath select i could pass a {$variable} that is of an
>> iterable type (eg a String[] or a Set<String> ) ecc.
>>
>
>
Previous Topic:How to set the transformation output file path?
Next Topic:[MOFScript] Problem with metamodel setting in Java integration
Goto Forum:
  


Current Time: Fri Apr 19 22:12:59 GMT 2024

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

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

Back to the top