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 04:51 Go to next message
Kristian Sons is currently offline Kristian Sons
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 05:05 Go to previous message
Kristian Sons is currently offline Kristian Sons
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: Tue Sep 02 10:06:35 EDT 2014

Powered by FUDForum. Page generated in 0.07207 seconds