[xsl] Easy question, big headache.
Subject: [xsl] Easy question, big headache.|
From: Patrick Bergeron <pbergeron@xxxxxxxxxxx>
Date: Tue, 11 Mar 2008 02:20:20 -0400
Hello XSLT experts... I am trying to do something simple but it's
proving to be a major pain in the bottom. Can someone help?
I have a XML document with a list of records:
And I need to output some of these records, but not all of them. The
rules upon which I decide to output are complex, and I won't bore you
Also, after every 5th record has been output, I need to write some
kind of marker in the output stream.
Something like this:
How exactly would I go about doing this?
In any other language, it's easy easy:
count = count + 1;
if (count modulo 5 = zero)
I can't understand why it's so complicated to do something like this.
Surely there must be some "easy as pie" solution out there?