當我嘗試加載網頁時,以下xsl文件不解析。我對這類東西非常陌生,而且找不到錯誤。我使用谷歌Chrome網頁開發工具,但沒有發現任何錯誤。 我在做什麼錯,爲什麼不會這個文件解析?xsl xml網頁無法解析
<?xml version = "1.0" encoding = 'UTF-8'?>
<?xsl-stylesheet type =
"text/xsl"xmlns:xsl="http://district.bluegrass.kctcs.edu/bwells0086/bookstore.xml"?>
<xsl:output method = "html">
<?xsl-template match="Book"?>
<html>
<body>
<table border = "3" bgcolor= "lightgreen">
<tr>
<th>Book Title</th>
<th>Author</th>
<th>Selling Price</th>
<th>Publication Year</th>
<th>Publisher</th>
</tr>
<xsl-for-each select= "BookTitle/Author/SellingPrice/PublicationYear/
Publisher">
<tr>
<td><xsl-value-of select="BookTitle"/></td>
<td><xsl-value-of select="Author"/></td>
<td><xsl-value-of select="SellingPrice"/></td>
<td><xsl-value-of select="PublicationYear"/></td>
<td><xsl-value-of select="Publisher"/></td>
</tr>
</xsl-for-each>
</table>
</body>
</html>
</xsl-stylesheet>
您有沒有接受過或沒有評論過任何答案?熟悉SO習慣... –