Xslt - iterate nodes in chunks
问题 I have an existing xslt script which creates a PDF with FOP, problem is that its running out of memory when doing apply-template on a specific nodetype when the node count exceeds a certain limit. In order to fix the memory issue I need to break up the result derived from that template call into several <fo:page-sequence> , but I dont want a page-sequence for each node, more like for each 100 node. My first thought was to use position() and simply add new sequence tags every 100th, but as