Eclipse 属性';前缀';没有价值

Eclipse 属性';前缀';没有价值,eclipse,polymer,Eclipse,Polymer,我正在尝试向纸张输入元素添加前缀,如下所示 此外,如果我尝试执行代码,我会收到以下错误: "Attribute 'prefix' has no value" Compiling module com.dirigendo.test.Test Computing all possible rebind results for 'com.dirigendo.test.client.Simulator.SimulatorUiBinder' Rebinding com.dirigendo.test.cl

我正在尝试向纸张输入元素添加前缀,如下所示

此外,如果我尝试执行代码,我会收到以下错误:

"Attribute 'prefix' has no value"
Compiling module com.dirigendo.test.Test
Computing all possible rebind results for 'com.dirigendo.test.client.Simulator.SimulatorUiBinder'
Rebinding com.dirigendo.test.client.Simulator.SimulatorUiBinder
Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[ERROR] Attribute name "prefix" associated with an element type "div" must be followed by the ' = ' character.
[ERROR] Error parsing XML (line 22): Attribute name "prefix" associated with an element type "div" must be followed by the ' = ' character.
[ERROR] Errors in 'com/dirigendo/test/client/Simulator.java'
[ERROR] Line 12: Failed to resolve 'com.dirigendo.test.client.Simulator.SimulatorUiBinder' via deferred binding
[WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
[WARN] com.dirigendo.test.client.Simulator_SimulatorUiBinderImpl
Unification traversed 13255 fields and methods and 1072 types. 1049 are considered part of the current module and 1049 had all of their fields and methods traversed.
[ERROR] Compiler returned false
[WARN] recompile failed
[WARN] continuing to serve previous version
请您解释一下如何停用此验证?我知道我可以使用一些环形交叉口,但我真的希望有一个解决方案,其中包括不更改示例代码。

改用

<div prefix="prefix">$</div>
$

$

Polymer只需要属性就可以了,对于有效的XML,它需要有一个值。聚合物只是忽略了这个值。

Hi!谢谢你的回答。我认为您的答案是正确的,但我想知道如何禁用EclipseMars和GWT编译器中的检查,而不是修复问题!Polymer在有效的地方使用HTML5。在您的环境中,Eclipse似乎采用XML。我不使用Eclipse或GWT。也许在文件顶部添加一个HTML5 doctype
会使Eclipse静音。嗨!谢谢你的回答。不幸的是,它不起作用。我真的很想知道如何在EclipseMars和GWT编译器中禁用check。还有其他想法吗?谢谢我看不出你的问题和Polymer有什么关系。我将Polymer与Eclipse和GWT结合使用。问题是在Eclipse中尝试复制和粘贴示例代码时。
<div prefix="prefix">$</div>
<div prefix="true">$</div>