D
Drulli Rokk
Hi,
Here's a question that has cost this newbie two days of headache already:
How can I get my XSLT stylesheet to specify a maximum number of elements to
process?
I'm now using <xsl:for-each> which processes all the child-nodes at the
particuar point in my XML (RSS) file. But what I really want, is this:
if number of child-nodes > n then process only the first n
else process all of them.
If anyone can point me to the general direction in which to look, or what
words to enter into google, I will be much obliged.
The part of the XML in question looks like this
<rss>
<channel>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>
Here's a question that has cost this newbie two days of headache already:
How can I get my XSLT stylesheet to specify a maximum number of elements to
process?
I'm now using <xsl:for-each> which processes all the child-nodes at the
particuar point in my XML (RSS) file. But what I really want, is this:
if number of child-nodes > n then process only the first n
else process all of them.
If anyone can point me to the general direction in which to look, or what
words to enter into google, I will be much obliged.
The part of the XML in question looks like this
<rss>
<channel>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>