Hm. You should be able to do something like this in your 'Activity' template in the XSL file.
<xsl:variable name="get_from"><xsl:value-of select="@Id"/></xsl:variable>
<xsl:copy-of select="/Package/Transitions/Transition[@From = $get_from]/ExtendedAttributes"/>
(I haven't tested that, I have no useable XSLT processor on this PC at this moment)
Your input XML file is a bit confusing.. But it does highlight one of the inherant difficulties in XML; showing relationships between sibling nodes (other than order-based relationships)...
I'm not quite sure if I get exactly what you're trying to do though; do you want the ExtendedAttributes in the Transition node with the same "From" attribute as the currently processed Activity node's "Id" attribute, to be placed in the <ntask> output node that's currently being processed?
Post back if that isn't the case.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
Offline 1,091 posts
since Jul 2006