style01.xsl
5/1/2026 4:07:56 PM in Japan
<?xml version="1.0" encoding="EUC-JP"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head></head> <body> <xsl:apply-templates select="xml_data/basic" /> <xsl:apply-templates select="/xml_data/ext" /> </body> </html> </xsl:template> <xsl:template match="basic"> <table border="1" cellpadding="0" cellspacing="0" width="80%"> <tr><th colspan="2">basic</th></tr> <tr><td>name</td> <td><xsl:value-of select="name"/></td></tr> <tr><td>memo</td> <td><xsl:copy-of select="memo"/></td></tr> </table> </xsl:template> <xsl:template match="ext"> <table border="1" cellpadding="0" cellspacing="0" width="80%"> <tr><th>memo <xsl:value-of select="@no" /> : <xsl:value-of select="@comment" /></th></tr> <xsl:for-each select="item"> <tr><td><xsl:copy-of select="."/></td></tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet>