<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- | EmpUsingRowStar.xsl: | Transform Emp.xml Into <table> using ROW/* to handle any column +--> <xsl:template match="/"> <html> <body><xsl:apply-templates/></body> </html> </xsl:template> <xsl:template match="ROWSET"> <table border="1" cellspacing="0"><xsl:apply-templates/></table> </xsl:template> <xsl:template match="ROW"> <tr><xsl:apply-templates/></tr> </xsl:template> <!-- Match any element child of a ROW --> <xsl:template match="ROW/*"> <td><xsl:apply-templates/></td> </xsl:template> </xsl:stylesheet> |