开发者

Restricting attributes of a XSD element when within a different element than normal

In my XSD file I have an alement 'row' of type 'rowType'.

When places within another element 'frozen', I would like to restrict the type of 'row' to a subset of 'rowType's allowable values.

Does anyone know开发者_如何学运维 how to do this?

Thanks.


You could use the restriction and place it inside a new complex type derived from rowType. Then add a row element to the frozen element which is a type of the new complex type.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜