Where emp.xsl looks like:
<?xml
version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/ROWSET">
<emp_table>
<xsl:apply-templates/>
</emp_table>
</xsl:template>
<xsl:template match="ROW">
<employee>
<xsl:attribute
name="empno"><xsl:value-of
select="EMPNO"/></xsl:attribute>
<xsl:apply-templates
select="ENAME"/>
<xsl:apply-templates
select="JOB"/>
</employee>
</xsl:template>
<xsl:template match="ENAME">
<name>
<xsl:value-of select="."/>
</name>
</xsl:template>
<xsl:template match="JOB">
<job>
<xsl:value-of select="."/>
</job>
</xsl:template>
</xsl:stylesheet>