File: Data.xml
<employee hireDate="09/01/1998">
<last>Smith</last>
<first>Joe</first>
<salary>95000</salary>
</employee>
File: Transform.xslt
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:template match="employee">
<xsl:apply-templates select="@hireDate" /><!-- note space -->
<xsl:apply-templates select="first" />
<xsl:apply-templates select="last" />
</xsl:template>
</xsl:stylesheet>
Output:
09/01/1998JoeSmith
|