当前位置: 首页 > 网络学院 > XML相关教程 > XForms > Xforms 数据类型参考

XForms
XForms 介绍
XForms 模型
XForms 命名空间
XForms 实例
XForms XPath
XForms 输入控件
XForms 选择控件
XForms 数据类型
XForms 属性
XForms 行为(Actions)
XForms 函数
Xforms 数据类型参考

XForms 中的 Xforms 数据类型参考


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 502 ::
收藏到网摘: n/a

Complete XForms Data Types Reference:
完整的XForms数据类型参考:


String Data Types
字符串数据类型

Name
名称
Description
描述
ID A string that represents the ID attribute
表现ID属性的字符串
IDREF A string that represents the IDREF attribute
表现IDREF属性的字符串
IDREFS ??
language A string that contains a valid language id (e.g. en, en-US)
含有一种有效语言id的字符串(例如,en, en-US)
Name A string that contains a valid XML name
含有一个有效XML名称的字符串
NCName ??
NMTOKEN A string that represents the NMTOKEN attribute
表现NMTOKEN属性的字符串
NMTOKENS ??
normalizedString A string that does not contain new line characters or tabs
不含新行字符或制表符的字符串
QName ??
string A string. This is the default data type XForms will use if no data type is specified.
一个字符串。没有指定数据类型,默认使用的数据类型为XForms

Note: string may contain tab characters and new line characters
注意:字符串包含新行字符与制表符

token A string that does not contain line feeds, carriage returns, tabs, leading or trailing spaces, or multiple spaces
不含有换行符,回车符,制表符,头尾空格,或重复空格的字符串。

All string data types are derived from the string data type itself.
所有字符串数据类型都是由字符串数据类型本身派生出来的。


Date and Time Data Types
日期和时间数据类型

Name
名称
Description
描述
date Defines a date value
定义日期值
dateTime Defines a date and time value
定义日期和时间值
gDay Defines a part of a date - the day (DD)
定义了日期的部分——日部分(DD)
gMonth Defines a part of a date - the month (MM)
定义了日期的部分——月部分(MM)
gMonthDay Defines a part of a date - the month and day (MM-DD)
定义了日期的部分——月和日部分(MM-DD)
gYear Defines a part of a date - the year (CCYY)
定义了日期的部分——年部分(CCYY)
gYearMonth Defines a part of a date - the year and month (CCYY-MM)
定义了日期的部分——年和月部分(CCYY-MM)
time Defines a time value
定义了时间值

??


Numeric Data Types
数值数据类型

Name
名称
Description
描述
byte A signed 8-bit integer
8位带符号整数
decimal A decimal value
小数数值
int A signed 32-bit integer
32位的带符号整数
integer An integer value
整数值
long A signed 64-bit integer
64位的带符号整数
negativeInteger An integer containing only negative values (..,-2,-1)
只含有负值的整数(..,-2,-1)
nonNegativeInteger An integer containing only non-negative values (0,1,2,..)
只含有非负值的整数(0,1,2,..)
nonPositiveInteger An integer containing only non-positive values (..,-2,-1,0)
只含有非正整数值的整数(..,-2,-1,0)
positiveInteger An integer containing only positive values (1,2, ..)
只含有正值的整数(1,2, ..)
short A signed 16-bit integer
16位的带符号整数
unsignedLong An unsigned 64-bit integer
64位的不带符号整数
unsignedInt An unsigned 32-bit integer
32位的不带符号的整数
unsignedShort An unsigned 16-bit integer
16位的不带符号的整数
unsignedByte An unsigned 8-bit integer
8位的不带符号的整数

All numeric data types are derived from the decimal data type.
所有数值数据类型都是从小数数据类型里派生出来的。


Miscellaneous Data Types
混合数据类型

Name
名称
Description
描述
anyURI Represents a URI, which includes web page addresses
代表一个URI,它包含一个网地
base64Binary Allows characters, including control characters, that otherwise aren't representable in XML
允许字符,包括control符,否则其他的是不能在XML里被描述的。
boolean Defines a true/false or 1/0 value
定义了true/false 或1/0值
double ??
float ??
hexBinary ??

??


XForms Data Types
XForms数据类型

Name
名称
Description
描述
listItems Represents a whitespace-separated list
描绘了空格分离的列表
listItem Represents only non-whitespace characters. An excellent base type for a whitespace-separated list
只描绘非空白字符,是空格分离列表不错的基本类型
dayTimeDuration Represents a duration of a certain number of seconds
描绘了一定秒数的持续时间
yearMonthDuration Represents a duration of a certain number of months
描绘了一定月数的持续时间

评论 (0) All

登陆 | 还没注册?