people.xsl
来自「使用dom2,sax2解析xml,使用解析器生成、转化xml」· XSL 代码 · 共 36 行
XSL
36 行
<?xml version="1.0" encoding="gb2312"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template match="/"><html> <head> <title>用户信息表</title> </head> <body> <h2 align="center">用户信息表</h2> <xsl:apply-templates select="PEOPLE"/> </body></html></xsl:template><xsl:template match="PEOPLE"> <table border="1" cellpadding="0" align="center"> <tr> <th>姓名</th> <th>住址</th> <th>电话</th> <th>传真</th> <th>电子邮件</th> </tr> <xsl:for-each select="PERSON"> <tr> <td><xsl:value-of select="NAME"/></td> <td><xsl:value-of select="ADDRESS"/></td> <td><xsl:value-of select="TEL"/></td> <td><xsl:value-of select="FAX"/></td> <td><xsl:value-of select="EMAIL"/></td> </tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?