【发布时间】:2010-01-28 04:26:19
【问题描述】:
我有一个 <font> 标记,其属性名称为 required 、 link='notusing' required 和 replaced_with (它应该是可选的,只有 link 值不是 'notusing' 的字符串)。
XSD 还必须检查 xml 是否具有在replaced_with 中指定的名称的字体。
例子:
<fonts>
<font name='font1' link='inuse'/>
<font name='font2' link='inuse'/>
<font name='font3' link='notusing' replaced_with="font2"/>
</fonts>
我该如何为此编写 XSD?谢谢
【问题讨论】:
标签: xsd