Essentially I need the entire contents of the XML file to reside in the root node, so I would need to change:
<?xml version="1.0" encoding="UTF-8"?>
<sss>
<ss id="01.20211160392320">
<idenSS>
<numSS>
<list>01</list>
<seqOper>20211160392320</seqOper>
</numSS>
</idenSS>
</ss>
</sss>
to something like this:
<?xml version="1.0" encoding="UTF-8"?>
<sss>
<sss_ss_idenSS_numSS_list>01</sss_ss_idenSS_numSS_list>
<sss_ss_idenSS_numSS_seqOper>20211160392320</sss_ss_idenSS_numSS_seqOper>
</sss>
The only way I've been able to come up with is extremely manual, and the XML I'm working with is extremely long, so I'd like to build it in a somewhat dynamic way, rather than explicitly naming the new tags.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" />
<xsl:template match="/">
<sss>
<sss_ss_idenSS_numSS_list>
<xsl:value-of select="sss/ss/idenSS/numSS/list"/>
</sss_ss_idenSS_numSS_list>
<sss_ss_idenSS_numSS_seqOper>
<xsl:value-of select="sss/ss/idenSS/numSS/seqOper"/>
</sss_ss_idenSS_numSS_seqOper>
</sss>
</xsl:template>
</xsl:stylesheet>