I am looking for a XSL snippet that simply returns the XML unaltered. It sounds trivial but I can\'t seem to find an example anywhere on the web. Any help out there?
This is a common problem and the answer is called an identity transform. The following template will copy the existing XML correctly. You then add extra templates to modify the behaviour (eg removing certain elements, renaming elements or attributes, etc).