Thanks for the reply. I'm sorry for not making myself clear.
The point was automatically duplicate the 'page' element from the source
document and generate identical elements in the target document that
differ only in their attribute values.
I was trying to do this with <xsl:for-each>, but it allows iteration only
on the source document elements. It seems that the only way is to
recursively call an <xsl:template>, but I was not able to find out how and
what should be send to the template?s parameters.
Thanks for your help,
> Without knowing what algorithm you want to use to generate the elements,
it's a bit difficult. But you could do: