Hi All, I'm very new to XSLT, so I've pretty much got this far with lots of other people's help. I'm trying to create an XML to import into one of the systems we use at my workplace, and it has to follow a very strict structure. I've almost got it exactly how I need, the structure is exact, however my XSLT ends up copying lots of extra data that I don't need and I'm not sure how I'd get rid of it. Here is my current XSLT; http://pastebin.com/FjLX5T6J Here is my current output; http://pastebin.com/B3S7sCzf Here is my desired output; http://pastebin.com/J6sRC2sj How do I get rid of all of the extra data that appears after the close of the "order" tag? Thanks all!