Mega Code Archive

 
Categories / XML / XSLT StyleSheet
 

Output text with tag

File: Data.xml <test>AAA</test> File: Transform.xslt <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   version="1.0">   <xsl:template match="test">     <testOut>       this is a test       <xsl:apply-templates />     </testOut>   </xsl:template> </xsl:stylesheet> Output: <?xml version="1.0" encoding="UTF-8"?><testOut>       this is a test       AAA</testOut>