XML Schema内置数据类型
来源:互联网 发布:pascal语言和c语言 编辑:程序博客网 时间:2024/06/08 08:27
Schema的内置类型继承关系
Schema内置类型说明
Notes:
(1) To retain compatibility between XML Schema and XML 1.0 DTDs, the simple types ID, IDREF, IDREFS, ENTITY, ENTITIES, NOTATION, NMTOKEN, NMTOKENS should only be used in attributes.
(2) A value of this type can be represented by more than one lexical format, e.g. 100 and 1.0E2 are both valid float formats representing "one hundred". However, rules have been established for this type that define a canonical lexical format, seeXML Schema Part 2.
(3) Newline, tab and carriage-return characters in a normalizedString type are converted to space characters before schema processing.
(4) As normalizedString, and adjacent space characters are collapsed to a single space character, and leading and trailing spaces are removed.
(5) The "g" prefix signals time periods in the Gregorian calendar.
各种内置类型详解
1:string及其相关类型
string:保留原始字符串。
normalizedString:字符串中Newline、tab和carriage-return都会被替换成空白。
token:字符串中Newline、tab和carriage-return都会被替换成空白,并且字符串中间连续的空白会被压缩成一个,字符串前后的空白会被自动删除。
Name:要求是合法的XML签名。
NCName:不带命名空间的XML签名。
QName:带命名空间的XML签名。
由string派生出来的ID、IDREF、ENTITY、ENTITIES、NMTOKEN、NMTOKENS类型只能用来约束属性。
ID:标识符。
IDREF:引用另一个ID。
IDREFS:引用多个已有的ID,空格为分隔符。
NMTOKEN:必须是合法的XML名称,只能由字母、数字、_、-、.、:组成。
NMTOKENS:多个NMTOKEN,空格为分隔符。
ENTITY:外部实体。
ENTITIES:多个外部实体,空格为分隔符。
- XML Schema内置数据类型
- 学习笔记——XML Schema内置数据类型
- 学习笔记——XML Schema内置数据类型
- XML Schema(W3C)数据类型
- XML - Schema之数据类型重用
- XML - Schema之数据类型扩展
- xml schema数据类型,元素类型
- XML Schema内置简单类型
- 学习笔记——XML Schema数据类型
- 疯狂XML学习笔记(9)-------------Schema内置类型
- XML简介Schema之XSD 杂项数据类型 VS XML总结
- 学习笔记——XML Schema自定义简单数据类型
- 学习笔记——XML Schema自定义数据类型(续)
- XML简介Schema之XSD XSD 实例 VS 字符串数据类型
- XML Schema
- XML Schema
- XML Schema
- xml schema
- MATLAB函数库
- PB8调用使用C++与C#分别编写生成解压缩带有密码的zip压缩文件的动态链接库dll(部分内容转自互联网)
- 抛开繁琐 简单几步设置好CocoaPods
- (10.1.4.2)知道拟物化(skeuomorphism)是怎么回事吗?这个视频够直观
- Libev学习笔记1
- XML Schema内置数据类型
- 如何使用matlab来批处理文件图片格式
- Android Volley解析(一)之GET、POST请求篇
- java生成数字证书(一、公钥数字证书)
- 浩易南:10个年赚10万的项目(下)
- python3 函数
- mac通过命令行搜索文件
- linux shell awk 语法
- Singapore Experiential Tour (Set G)