Hi all,
Below is an excerpt from my xml tree. I need to print out the first 10 <article> nodes. But I can't figure out how to count them. position() doesn't work since they appear under different parents. I'm trying to do something like:
for-each folder/article and counter < 10
print contents of article
Code:
<folder>
<article>
<article>
</folder>
<folder>
<article>
</folder>
<folder>
<article>
<article>
<article>
</folder>
<folder>
<article>
<article>
</folder>
Any help is appreciated.