schema build
来源:互联网 发布:javaweb网上商城源码 编辑:程序博客网 时间:2024/06/13 09:05
一 处理内容模型
1 合成器 sequence choice all
2 出现次数行为 minOccurs maxOccurs (any group element choice sequence场合)
3 命名的内容模型 可重用,引用。
4 元素内容与数据类型
元素内容模型 该元素可以含有子元素
文本内容模型 该元素只能含有文本
<xsd:element name="tel" type="xsd:string"/>
或<xsd:complexType name="telType">
<xsd:simpleContent>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9]{3}-[0-9]{7}"/>
</xsd:restriction>
</xsd:complexType>
混合内容模型 该元素可以含有子元素与文本
mixed="true"
EMPTY内容模型 该元素不含有子元素或文本
ANY内容模型 该元素可以含有任何内容
<xsd:element name="contact">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any maxOccurs="unbounded" processContents="skip"/>
</xsd:sequence>
</xsd:conplexType>
</xsd:element>
二 创建与使用模型组
group
三派生复杂类型与简单类型
restriction 标识一个已有的基础类型,并使用刻面来约束它的内容
extension 标识一个已有的基础类型,并扩充它
list 标识可以列为一个值的已有基础类型
union 标识组合起来可以定义一种新类型的已有基础类型
派生复杂类型
通过扩充进行派生 extension
通过约束进行派生 restriction
派生新的简单类型
restriction (12个可能的约束刻面 enumeration fractionDigits length maxExclusive maxInclusive maxLength minExclusive minInclusive minLength pattern ( 正规表 达式) totalDigits whiteSpace)
list <day>1 2 3 4 5 6 7</day>
union <xsd:simpleType name="exampleTypeUnion">
<xsd:union membertypes="first second"/>
</xsd:simpleType>
名称空间限定
elementFormDefault="qualified | unqualified"
unqualified(默认值) 文档实例可能会隐蔽所有名称空间限定。这只适用那些局部定义的元素
qualified 每个元素的名称空间在文档实例中必须暴露出来。
attributeFormDefault="qualified | unqualified"
- schema build
- window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常
- Schema
- schema
- Schema
- schema
- Schema
- Schema
- Schema
- Schema
- Schema
- schema
- Schema
- Schema
- Schema
- Schema
- Schema
- schema
- Csdn上的一个工作
- js小结
- little endian和big endian
- jsf验证器创建
- java开源框架包
- schema build
- http://www.javaworld.com.tw/confluence/pages/viewpage.action?pageId=2630
- Html学习
- http://PureBit.net/Blog 我的博客搬新家了,欢迎访问
- ubuntu多媒体设置
- 纯真IP数据库格式详解
- 本程序能够对灰度图像先进行二值化,再进行腐蚀操作
- ASP.NET程序中常用的三十三种代码
- Linux 全程指导