I'm basically taking fileA.xml, grabbing nodes from totally distinct parts of the file, and building a new tree in fileB.xml. Relative paths are a bit confusing now because once I get to a node nested 3 down, and I need to add another node which is nested 4 down from a totally different branch, I start needing global xpaths.
Question is, which is better performing? Relative paths or global paths?
1) node3 (when I'm in node1/node2) 2) /node1/node2/node3
<node1a>
<node2a>
<node3a/>
<node3a/>
<node3a/>
</node2a>
<node2b>
<node3b>
<node4b/>
</node3b>
</node2b>
</node1a>
<!-- the above is rearranged to this -->
<node1a>
<node4b/>
<node3a/>
<node3a/>
<node3a/>
</node1a>
FileA.xml will always have the same structure, and the reusability of the xslt templates isn't an issue. So should I just use global paths?
Otherwise there's too much context to keep track of it seems.
Thanks a lot, Lance