arcgis for js api导入eclipse错误

Javascript的Dojo包导入有错误Xpath is invalid in dojo library

利用jsp开发网站时导入Dojo包后,svg2gx.xml文件的<xsl:apply-templates select="&SupportedElements;">处报错误Xpath is invalid in dojo library。该错误不影响使用。
解决办法:两种


方法一、设置Eclipse,Window -> Preferences; Validation -> XSL Validator -> Settings; Add exclude group, Add rule, choose the "file extension",添加文件扩展名”xml“

参考网址:https://bugs.eclipse.org/bugs/show_bug.cgi?id=328051

arcgis for js api导入eclipse错误_第1张图片

arcgis for js api导入eclipse错误_第2张图片

方法二:将文件头部SupportedElements所代表的字符串


"svg:a|svg:circle|svg:ellipse|svg:g|svg:image|svg:line|svg:path|svg:polygon|svg:polyline|svg:rect|svg:text|svg:textPath|svg:use"
替换报错处的"&SupportedElements;"

你可能感兴趣的:(arcgis)