Code:
<xsl:template match="/ns0:YTEST_SUM.Response">
<ns1:YCUST_OUTPUT><OUT ID="{SUM/@ID}">
<xsl:value-of select="SUM"/>
</OUT>
</ns1:YCUST_OUTPUT>
</xsl:template>
might suffice though writing a template for the SUM element with e.g.
Code:
<xsl:template match="SUM">
<OUT ID="{@ID}">
<xsl:value-of select="."/>
</OUT>
</xsl:template>
and then applying that with e.g.
Code:
<xsl:template match="/ns0:YTEST_SUM.Response">
<ns1:YCUST_OUTPUT>
<xsl:apply-templates/>
</ns1:YCUST_OUTPUT>
</xsl:template>
is cleaner and easier to extend and enhance.