📄 table.xsl
字号:
<?xml version='1.0' encoding="gb2312" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40" >
<xsl:template match="/">
<html><head><title>书籍表中的记录数据</title></head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="图书清单">
<center>
<h3>应用样式单的XML查询结果</h3>
<table border="1">
<thead>
<th>编号</th><th>作者</th><th>书名</th><th>出版社</th>
</thead>
<xsl:apply-templates/>
</table>
</center>
</xsl:template>
<xsl:template match="书籍">
<tr>
<td><xsl:value-of select="编号"/></td>
<td><xsl:value-of select="作者"/></td>
<td><xsl:value-of select="书名"/></td>
<td><xsl:value-of select="出版社"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -