authors.xsl
来自「Microsoft?ASP.NET Programming with Micro」· XSL 代码 · 共 55 行
XSL
55 行
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<style>
.header{font-weight:bold;color:white;background-color:black;}
.value{font-family:arial;font-size:.7em;background-color:silver}
</style>
<table border="1" cellspacing="0" cellpadding="1" bordercolor="black">
<tr class="header">
<th>Author ID</th>
<th>Last Name</th>
<th>First Name</th>
<th>Phone</th>
<th>Address</th>
<th>City</th>
<th>State</th>
<th>Zip</th>
<th>Contract</th>
</tr>
<xsl:for-each select='Schema1/authors'>
<tr>
<td nowrap="true" class="value">
<b>
<xsl:value-of select='@au_id' />
</b>
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@au_lname' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@au_fname' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@phone' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@address' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@city' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@state' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@zip' />
</td>
<td nowrap="true" class="value">
<xsl:value-of select='@contract' />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?