开发者

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

开发者 https://www.devze.com 2022-12-16 22:55 出处:网络
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.

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

精彩评论

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