XSD: How to derive a simpletype both to add a attribute to it and to restrict the acceptable value of it

前端 未结 2 849
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 01:49

for example To validate the following element:

 100 

The constraint I want on the text

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-15 02:15

    It is not possible without adding a new type; you can't extend and restrict at the same time.

提交回复
热议问题