我在 eXist-db 上有一个 XML 文档,但编译器抱怨给我以下错误:
无法编译 xquery:exerr:ERROR org.exist.xquery.XPathException:err:XPST0003 意外标记:xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl" [在第 2 行,第 1 列]
我已经尝试了我能想到的一切:
- 将 xml 复制到 xhtml 文档。
- 删除它抱怨的标签(但它会抱怨其他标签)
- 在 eXist 中运行 xml 没有结果
- 在浏览器中运行它生成的 html 也会出现另一个错误。
这是我认为的 XML 的相关部分:
nuevacontribucion.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl" ?><?css-conversion no?><?xsltforms-options debug="no"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<title>Crear una nueva Contribución</title>
<link href="../css/loading.css" rel="stylesheet"/>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"/>
<link href="assets/styles.css" rel="stylesheet" media="screen"/>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="vendors/flot/excanvas.min.js"></script><![endif]-->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="vendors/modernizr-2.6.2-respond-1.1.0.min.js"/>
<style>
input[type='text'], select{
min-height: 30px;
}
iframe{
width: 100% !important;
height: 200px !important;
}
.datepicker .aid-button{
display: none !important;
}
</style>
如果我删除 xml-stylesheet 标记,那么它会抛出相同的异常,但会抱怨 css 转换,如果我删除它,那么它是关于以下标记,如果我删除它,那么它是关于 xmlns 没有被定义或什么的。