So, I have two nodes of elements to which I, in fact, try to join. I want the top level node to remain the same, but the child nodes are replaced by the ones referenced by the links.
Given:
<stuff> <item foo="foo" boo="1"/> <item foo="bar" boo="2" /> <item foo="baz" boo="3"/> <item foo="blah boo="4""/> </stuff> <list a="1" b="2"> <foo>bar</foo> <foo>baz</foo> </list>
I want to skip the "list" and cross reference elements in "stuff" for this result:
<list a="1" b="2"> <item foo="bar" boo="2" /> <item foo="baz" boo="3"/> </list>
I want to do this without knowing what attributes may be in the "list". In other words, I do not want to explicitly call them, for example
attribute a { $list/@a }, attribute b { $list/@b }
source share