<row>
<cell>Phrase 1</cell> #0
<check shuffle="False">
<option key="1"/> #1
<option key="0"/> #2
<option key="0"/> #3
<option key="0"/> #4
<option key="0"/> #5
<option key="0"/> #6
</check>
<cell>Phrase 2</cell> #7
<cell>Phrase 3</cell> #8
<check shuffle="False">
<option key="1"/> #9
<option key="0"/> #10
<option key="0"/> #11
<option key="0"/> #12
<option key="0"/> #13
<option key="0"/> #14
</check>
</row>
I’ve got the following quandary.
I need to find the “index” in the “row” tag for both cells and the each option.
How do I do this in XSL? Each cell counts as one and each “option” children tags in any siblings also count. I’ve labeled the “indexes” I would like to retrieve. I realize there will probably be one way for determining the index of a “cell” versus a “option” element.
I know a bit about XSL but just enough to get my in trouble and quite frustrated. Any help is appreciated.
Thanks as always SO!
Use
xsl:number:With this input (more
rows):Output: