开发者

Set nillable element with Relax NG

开发者 https://www.devze.com 2023-01-16 11:17 出处:网络
Is there a way to declare that an element can be null using Relax NG, something like xsi:nillable=\"true\" using XS开发者_StackOverflowD? According to J. Clark in The Design of Relax NG Null values ar

Is there a way to declare that an element can be null using Relax NG, something like xsi:nillable="true" using XS开发者_StackOverflowD?


According to J. Clark in The Design of Relax NG Null values are not included as part of Relax NG. He proposes some alternatives to deal with these cases but we can argue that some times (i.e. array programming) the Null values are necessary as place holders. If we define extra arguments or elements to show that an element is null, we increase the complexity of the element structure though.

0

精彩评论

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