XSL:文档为空

时间:2013-02-12 21:38:29

标签: xml xslt document

当我尝试查看我的xml树时,我收到此错误

“此页面包含以下错误:

第1行第5行的

错误:文档为空“

这是我的xsl到第5行:

<?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

1 个答案:

答案 0 :(得分:0)

您是否正确地将xsl应用于xml?例如,使用随机XML文档,我发现它将适用于您的xsl:

撒克逊人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