Each block of output code within a repeated sequence has its own internal position indicator, and any control within such a block can access that indicator through the index XPath extension.
The split method is useful because it splits a string into a sequence of smaller strings, using a token character (or any character in a given sequence of characters) as an indicator of where to chop.