I'm trying to do an XSLT transformation that requires that I copy certain parts of the document multiple times and concatenate it to other individual parts. I'm working with xsl:copy and wildcards characters and coming up short on the output (I'm really trying to limit how many elements/attributes I have to reference directly as the actual schema is much larger than my example). Below is an example of the input then an example of the expected output I'm wanting. Can someone help get me started on accomplishing this? Thanks.
INPUT:
<TestXML xmlns="http://something.com" xmlns:xsi="http://differentNS.com">
<ForAll>
<GlobalID>123456</GlobalID>
<OriginatingLoc>ABC</OriginatingLoc>
</ForAll>
<Order>
<Customer>
<Name>John Somebody</Name>
<Gender>Male</Name>
<DOB>1-1-1990</DOB>
</Customer>
<Address>
<Street>1234 Lost Ave.</Street>
<City>Someplace Nice</City>
<State>TX</State>
</Address>
</Order>
<Order>
<Customer>
<Name>Jane Else</Name>
<Gender>Female</Name>
<DOB>1-1-1984</DOB>
</Customer>
<Address>
<Street>567 101st St</Street>
<City>Lucky Town</City>
<State>FL</State>
</Address>
</Order>
</TestXML>
EXPECTED OUTPUT:
<Output>
<TestXML xmlns="http://something.com" xmlns:xsi="http://differentNS.com">
<ForAll>
<GlobalID>123456</GlobalID>
<OriginatingLoc>ABC</OriginatingLoc>
</ForAll>
<Order>
<Customer>
<Name>John Somebody</Name>
<Gender>Male</Name>
<DOB>1-1-1990</DOB>
</Customer>
<Address>
<Street>1234 Lost Ave.</Street>
<City>Someplace Nice</City>
<State>TX</State>
</Address>
</Order>
</TestXML>
<TestXML xmlns="http://something.com" xmlns:xsi="http://differentNS.com">
<ForAll>
<GlobalID>123456</GlobalID>
<OriginatingLoc>ABC</OriginatingLoc>
</ForAll>
<Order>
<Customer>
<Name>Jane Else</Name>
<Gender>Female</Name>
<DOB>1-1-1984</DOB>
</Customer>
<Address>
<Street>567 101st St</Street>
<City>Lucky Town</City>
<State>FL</State>
</Address>
</Order>
</TestXML>
</Output>