模式限制:假设Schema的名字空间前缀为“xsd”,现在需要定义名为“phoneType”的简单类型,在“string”类型的基础上增加模式限制,要求是手机号码,下面正确的选项是()。

发布时间:2024-08-26 11:17:00 作者:wudongabc..1 阅读量:18

模式限制:假设Schema的名字空间前缀为“xsd”,现在需要定义名为“phoneType”的简单类型,在“string”类型的基础上增加模式限制,要求是手机号码,下面正确的选项是()。


xsd:simpleTypename="phoneType"xsd:restrictionbase="xsd:string"xsd:patternvalue="[0,9]{11}"//xsd:restriction/xsd:simpleType

xsd:simpleTypename="phoneType"xsd:restrictionbase="xsd:string"xsd:patternvalue="[0,9]{11}+"//xsd:restriction/xsd:simpleType

xsd:simpleTypename="phoneType"xsd:restrictionbase="xsd:string"xsd:patternvalue="[0,9]{11}?"//xsd:restriction/xsd:simpleType

xsd:simpleTypename="phoneType"xsd:restrictionbase="xsd:string"xsd:patternvalue="[0-9]{11}"//xsd:restriction/xsd:simpleType


点击这里跳转到答案查看网获取答案

正确答案网   网站地图

皖ICP备18026791号-5

Catfish(鲶鱼) CMS V 6.7.3