Add element between two other elements via XSLT?
问题 I have the following input XML: <root> <aaa>some string aaa</aaa> <bbb>some string bbb</bbb> <ddd>some string ddd</ddd> </root> Using XSLT I want to the following output: <root> <aaa>some string aaa</aaa> <bbb>some string bbb</bbb> <ccc>some string ccc</ccc> <ddd>some string ddd</ddd> </root> My XSLT is: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select=