[英]IDE can't find declaration of element in xsl file
我在一个旧的 java 5 项目上工作,但我无法运行它。 在我尝试运行它之前,Eclipse(Neon.2 Release 4.6.2)向我指出了这个错误:
cvc-elt.1 cannot find the declaration of element xsl:stylesheet
在这里,错误的xml代码:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:output method="xml" encoding="UTF-8" />
....
....
Eclipse 在此行(第 3 行)指示错误:
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
我理解错误,但我不知道如何解决它。 我能做些什么来解决它?
当文件名中有空格时出现此错误。 删除后,错误不再出现。 不过,我没有使用相同版本的 Eclipse。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.