This is a simple solution to your problem:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="employee">
<employee>
<xsl:call-template name="employeeCommentTransformer">
<xsl:with-param name="commentString" select="comment()"/>
</xsl:call-template>
</employee>
</xsl:template>
<xsl:template name="employeeCommentTransformer">
<xsl:param name="commentString"/>
<name><xsl:value-of select="substring-before(substring-after($commentString, 'name>'), 'name')"/></name>
<id><xsl:value-of select="substring-before(substring-after($commentString, 'id>'), 'id')"/></id>
<email><xsl:value-of select="substring-before(substring-after($commentString, 'email>'), 'email')"/></email>
</xsl:template>
</xsl:stylesheet>
For the scanning of the comment-string XPath
substring functions are used, depending on your
XSLT processor you may use regular-expression
matching.
#API-Management#Tamino#webMethods