Index() within repeat shows only 1 #302
Answered
by
JoernT
RibeyeOnTheBone
asked this question in
Q&A
-
|
I believe I am seeing the same issue as #209 But I dont understand the answer. My code is which always shows 0 in the cell. The answer given in 209 says its is working, and the answer is accepted. What should I do? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
JoernT
Jul 7, 2025
Replies: 1 comment 1 reply
-
|
There might be a misunderstanding? - index() returns the current repeat-index which is by default 1. If you want row numbering you'll need to use something like {count(preceding-sibling:*) + 1} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RibeyeOnTheBone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There might be a misunderstanding? - index() returns the current repeat-index which is by default 1. If you want row numbering you'll need to use something like {count(preceding-sibling:*) + 1}