我有一个这样的 xml 文档:
<root>
<text>
<ID>01</ID>
<weight>1</weight>
<word>attend</word>
<note>important</note>
</text>
<text>
<note>very important</note>
<ID>01</ID>
<weight>1</weight>
<word>slow</word>
</text>
规则是:id、weight、word必须按顺序作为text节点的子节点出现,note节点可以出现在id节点之前或之后。所以我的DTD是:
<!ELEMENT text (note?, ID, weight, word, note?)>
但是 xml 编辑器说“这不是决定论”。为什么?