0

当我尝试查看我的 xml 树时,出现此错误

“此页面包含以下错误:

第 5 行第 1 列的错误:文档为空”

这是我第 5 行的 xsl:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="books.xsl"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="books">
    <html>
      <head>

链接:http: //infd.birdnest.org/~grangere2/CSCI441/books.xsl

4

1 回答 1

0

您是否正确地将您的 xsl 应用到您的 xml 中?例如,使用我发现可以与您的 xsl 一起使用的随机 XML 文档:

撒克逊http://tinyurl.com/a5bcf42 http://infd.birdnest.org/~grangere2/CSCI441/books.xsl

或者

xsltproc http://infd.birdnest.org/~grangere2/CSCI441/books.xsl http://tinyurl.com/a5bcf42

于 2013-02-12T21:55:13.673 回答