[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Thanks for <xsl:iterate>

Subject: Re: Thanks for <xsl:iterate>
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 30 Jan 2014 17:58:59 +0000
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.