Or maybe you need
test="(count(preceding::line)+count(ancester::line)) mod 80 = 0
depending on the XML structure.
Quoting Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com:
Hi,
I need to include a header after every 80 lines
of output in the transformed html page. I am able to
count the total no of lines. But how to identify that
the number of line after which I need to include a
header.
E.g. test="count(preceding::line) mod 80 = 0" or test="$i mod 80 = 0" when $i
is the line number being processed.
Cheers,
Jarno
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--