Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [JET] Xpath position()
[JET] Xpath position() [message #487720] Thu, 24 September 2009 08:51 Go to next message
Kristian Sons is currently offline Kristian SonsFriend
Messages: 27
Registered: July 2009
Junior Member
Hello M2T people!

I'd like to have the position of the current iteration. I tried the
XPath position function, but it didn't help:

<c:iterate select="eAllContainments" var="reference">
${position()}
</c:iterate>

returns always '1'.

I know I can work around this using variables. But is there a
straightforward way?

Best,
Kristian
Re: [JET] Xpath position() [message #487729 is a reply to message #487720] Thu, 24 September 2009 09:05 Go to previous message
Kristian Sons is currently offline Kristian SonsFriend
Messages: 27
Registered: July 2009
Junior Member
Just found a bug addressing this topic:

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

Sorry!


Kristian Sons schrieb:
> Hello M2T people!
>
> I'd like to have the position of the current iteration. I tried the
> XPath position function, but it didn't help:
>
> <c:iterate select="eAllContainments" var="reference">
> ${position()}
> </c:iterate>
>
> returns always '1'.
>
> I know I can work around this using variables. But is there a
> straightforward way?
>
> Best,
> Kristian
Previous Topic:How to generate into a string instead of a file with xpand?
Next Topic:Check: Live Validation
Goto Forum:
  


Current Time: Fri Mar 29 07:43:32 GMT 2024

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

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

Back to the top