Is there any way in xml schema to let an attribute always be greater than another one in an xml element?

后端 未结 3 1491
梦谈多话
梦谈多话 2021-01-26 16:13

Here is the xml:


So, how to write an xsd to ensure that the attribute to

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 16:28

    In XSD 1.1, you can use an assertion on the type of 'range' to impose that constraint. In XSD 1.0, the constraint is not expressible.

提交回复
热议问题