Why does count(preceding-sibling::myField) + 1 NOT WORK???


Badge
On every page searched on the topic, there is NO clear direction as to how this works. I'm trying to aut increment a field on a repeating section. Everyone else asking the same question also gets no answers.

Is it possible to get some help????

2 replies

Badge +11
Please post your code you're trying to use so that we can have a look at it.

Also, what exactly did you search for - I'd like to see if we can help the other comunity members as well.

Regards,
Ockert
Badge +8
You will need to use the whole namespace, e.g.:
count(preceding-sibling::my:myField) + 1.

Just need to verify that you didn't change the "my:" namespace in your schema.

Reply