[Home] [By Thread] [By Date] [Recent Entries]
Just wanted to say "thank you" to the XSLT Working Group and implementors for
the functionality of <xsl:iterate> in 3.0, which I've just found my first use
case for (I'm sure it won't be the last). I had transformed a large corpus of
text documents (all children of single XML document instance) to another syntax,
using position() to assign ID numbers to the output format. During a correction
cycle, some of the original text documents were deleted. That meant that IDs
generated using position() would be out of synch with the prior output.
Solution, adding processing instructions to mark deletions, and use those to increment a counter via <xsl:next-iteration> to add to the value of position(). Very simple + logical. (And not evil, as saxon:assign() would have been in the old days.) DS -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@xxxxxxxxxxxx Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/
|

Cart



