XML to XML using XSLT
Am XSLT newbie. Need to read XML file, swap the order of two complex objects, and write XML file. If I understand the XSLT capabilities correctly, this is not the kind of transformation that XSLT is designed to do. I understand that XSLT can extract the values of XML elements, and the programmer can insert those values into the output XML. But I really need to copy whole XML element declarations, meaning tags, attributes, etc., not just the values. Can XSLT do this?
The genesis of this problem is JAXB's apparent refusal to enforce a specification in an input XSD. Elements are coming out randomly, in apparent disregard for the specification. Posted a message on this point some time ago and saw no replies.