xsd 中的限制问题 [英] Problem with restriction in xsd

查看:39
本文介绍了xsd 中的限制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<xs:restriction base="xs:any">

为什么我不能对这样的任何类型进行限制?

Why cant I put restriction on any type like this?

推荐答案

因为它毫无意义,从语义上来说就像你不能什么都不做"这样的声明

Because its meaningless, semantically it would be like the statment "You can't do nothing"

从语法上讲,在阅读了 xs:restriction 之后,我认为 xs:any 不是内置数据类型、simpleType 元素或 complexType 元素,而是占位符用于扩展带有任何元素的文档.

More syntactically, after reading about xs:restriction, I think that xs:any is not a built in data type, simpleType element or a complexType element but rather a place holder for extending a document with any element.

这篇关于xsd 中的限制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆