<keshlam <at> us.ibm.com> writes:

> 
> The normal way to solve this is to generate
> each of the output documents in turn, rather than trying to produce them
> in parallel. Yes, this may require walking the input document repeatedly,
> but XSLT can do so.
> 

So you mean something like <xsl:for-each> to get each id and (possibly) each
value of attr2, then using document() to reopen the document and find the
matching element? Or is there something more efficient? 

My input document will contain more than 1000 different ids, so in the approach
I outline that would mean going over the document 1000 times, which seems a lot
to me.

L

Reply via email to