Hello all,
I have a question for you guys and thank you by advance, this forum is great!
I have a sequence of blocks (defined through an <xsl:sequence> tag). This sequence is named blocks and contains many block element as follows :
In a for-each loop (in which a inspect each block one by one), I want to access the value of an attribute of a preceding block. It's impossible to use preceding-sibling in XPATH since there is no common node to all these blocks. I just wanted to know how to define a counting variable so that I can access (for example) the 5th block element of this sequence using $blocks[5].
Do you know how can I do this ??
Many thanks by advance !
I have a question for you guys and thank you by advance, this forum is great!
I have a sequence of blocks (defined through an <xsl:sequence> tag). This sequence is named blocks and contains many block element as follows :
Code:
<block id="xx">
....
</block>
<block id="yy">
....
</block> ...
In a for-each loop (in which a inspect each block one by one), I want to access the value of an attribute of a preceding block. It's impossible to use preceding-sibling in XPATH since there is no common node to all these blocks. I just wanted to know how to define a counting variable so that I can access (for example) the 5th block element of this sequence using $blocks[5].
Do you know how can I do this ??
Many thanks by advance !