【问题标题】:XSL: Document is emptyXSL:文档为空
【发布时间】:2013-02-12 21:38:29
【问题描述】:

当我尝试查看我的 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

【问题讨论】:

  • 为什么将 xsl 样式表链接到 XSL 文件中?
  • href="books.xsl" 不在他的链接中...

标签: xml xslt document


【解决方案1】:

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

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

xsltprochttp://infd.birdnest.org/~grangere2/CSCI441/books.xslhttp://tinyurl.com/a5bcf42

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-13
    • 1970-01-01
    • 2011-01-15
    • 1970-01-01
    • 1970-01-01
    • 2019-03-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多