Xml XSLT分析失败
所有内容都与我的xml文件匹配,唯一不同的是我有多个类型、骰子和主题的描述符。我知道增长是小写的。我使用的是Ubuntu,我只知道如何使用firefox浏览器进行测试,所以我得到的只是“加载样式表时出错:解析XSLT样式表失败”。感谢您的帮助Xml XSLT分析失败,xml,xslt,Xml,Xslt,所有内容都与我的xml文件匹配,唯一不同的是我有多个类型、骰子和主题的描述符。我知道增长是小写的。我使用的是Ubuntu,我只知道如何使用firefox浏览器进行测试,所以我得到的只是“加载样式表时出错:解析XSLT样式表失败”。感谢您的帮助 <?xml version ="1.0"?> <xsl-stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transfo
<?xml version ="1.0"?>
<xsl-stylesheet version = "1.0"
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" >
<xsl:output method = "html" omit-xml-declaration = "no"
doctype-system =
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"/>
<xsl: template match = "/">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title> Tabletop RPG systems </title>
</head>
<body>
<table border = "1" bgcolor = "wheat">
<thread>
<tr>
<th>Name</th>
<th>Company</th>
<th>Focus</th>
<th>IP</th>
<th>Genres</th>
<th>Dice</th>
<th>growth</th>
<th>Theme</th>
</tr>
</thread>
<xsl:for-each select = "/tRPG/Name">
<tr>
<td><xsl:value-of select = "Name"/></td>
<td><xsl:value-of select = "Company"/></td>
<td><xsl:value-of select = "Focus"/></td>
<td><xsl:value-of select = "IP"/></td>
<td><xsl:value-of select = "Genres"/></td>
<td><xsl:value-of select = "Dice"/></td>
<td><xsl:value-of select = "growth"/></td>
<td><xsl:value-of select = "Theme"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
桌面RPG系统
名称
单位
集中
知识产权
体裁
掷骰子
生长
主题
您在XML级别有几个语法错误:
<xsl-stylesheet version = "1.0"
<xsl: template match = "/">
欢迎来到SO。请参阅。
<xsl: template match = "/">
<xsl:template match = "/">