<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:math="http://www.w3.org/2005/xpath-functions/math"xmlns:map="http://www.w3.org/2005/xpath-functions/map"xmlns:array="http://www.w3.org/2005/xpath-functions/array"exclude-result-prefixes="#all"version="3.0"><xsl:outputomit-xml-declaration="yes"method="xml"indent="yes"/><xsl:templatematch="/root"><MyList><xsl:apply-templatesselect="@*|node()"mode="copy"/></MyList></xsl:template><xsl:templatematch="@*|node()"mode="copy"><!-- We dont want the header andd footer nodes--><xsl:iftest="name()!='header'"><!-- copying all nodes recursively--><xsl:copy><xsl:copy-ofselect="@*"/><xsl:apply-templatesmode="copy"/></xsl:copy></xsl:if></xsl:template></xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:math="http://www.w3.org/2005/xpath-functions/math"xmlns:map="http://www.w3.org/2005/xpath-functions/map"xmlns:array="http://www.w3.org/2005/xpath-functions/array"exclude-result-prefixes="#all"version="3.0"><xsl:outputomit-xml-declaration="yes"method="xml"indent="yes"/><xsl:templatematch="/root"><MyList><xsl:apply-templatesselect="[(@*|node())]"mode="copy"/></MyList></xsl:template><xsl:templatematch="@*|node()"mode="copy"><!-- adding a new node email befoore noooode rc --><xsl:iftest="name()='rc'"><email><xsl:value-ofselect="translate(../rb,' ','')"/>@somemail.net</email></xsl:if><!-- We dont want the header andd footer nodes--><xsl:iftest="name()!='header'"><!-- copying all nodes recursively--><xsl:copy><xsl:copy-ofselect="@*"/><xsl:apply-templatesmode="copy"/></xsl:copy></xsl:if></xsl:template></xsl:stylesheet>