xsl-list
[Top] [All Lists]

Apply Template based on position or count

2004-02-05 18:25:23
Hi there,

I have a node fragment with (lets say) 20 items in it.  I would like to
apply a template rule which matches the first 10 nodes, and then later the
2nd ten.  Ultimately I am trying to create two columns in my html output.
Now, lets say there are 25 items, so the first set would contain 13 items
and the 2nd set 12 items - but somehow in XSLT no that we need to match 13
rows on the left so add 1 more row.

So, can you apply-templates and specify some sort of [1-10] match?

Karl



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list