When requesting XML content from a web content article, sometimes we need to clean it up. (Especially if we’re going to have multiple variations of these templates)
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" indent="yes"/> <xsl:template match="/root"> <xsl:element name='simplified_new_root_node_name'> <xsl:element name='simplified_new_element_name'> <xsl:value-of select="dynamic-element[@name='structure_field_name']/dynamic-content"/> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet>(template to generate new XML from structure-based XML)

