File: Data.xml
<?xml version="1.0"?>
<CATS>
<SIAMESE>
<NAME>A</NAME>
<NAME>B</NAME>
</SIAMESE>
</CATS>
File: Transform.xslt
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" />
<xsl:template match="/">
<xsl:apply-templates select="CATS/SIAMESE/NAME" />
</xsl:template>
<xsl:template match="CATS/SIAMESE/NAME">
<xsl:value-of select="." />
<xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
Output:
A B
|