[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Thanks for <xsl:iterate>
On behalf of the WG, thank you for saying thank you. All feedback is very welcome! Michael Kay for the XSL WG. On 28 Jan 2014, at 22:18, David Sewell <dsewell@xxxxxxxxxxxx> wrote: > 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|