• XML Schema


    Restrictions for Datatypes
    对数据类型的约束

    Constraint
    约束
    Description
    说明
    enumeration Defines a list of acceptable values
    定义了一系列的有效值
    fractionDigits Specifies the maximum number of decimal places allowed. Must be equal to or greater than zero
    指定了允许的小数位数的最多位数。必须大于等于0
    length Specifies the exact number of characters or list items allowed. Must be equal to or greater than zero
    指定了允许的字符或列表项的个数。必须大于等于0
    maxExclusive Specifies the upper bounds for numeric values (the value must be less than this value)
    指定了数值的上限(数值要比这个值小)
    maxInclusive Specifies the upper bounds for numeric values (the value must be less than or equal to this value)
    指定了数值上限(数值必须小于等于这个值)
    maxLength Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero
    指定了所允许的字符或列表项的最多个数。必须大于等于0
    minExclusive Specifies the lower bounds for numeric values (the value must be greater than this value)
    指定了数值的下限 (数值要比这个值小)
    minInclusive Specifies the lower bounds for numeric values (the value must be greater than or equal to this value)
    指定了数值的下限(数值必须大于等于这个值)
    minLength Specifies the minimum number of characters or list items allowed. Must be equal to or greater than zero
    指定了所允许的字符或列表的最少个数。必须等于大于0个
    pattern Defines the exact sequence of characters that are acceptable
    定义了符合要求的字符的确切排列顺序
    totalDigits Specifies the exact number of digits allowed. Must be greater than zero
    指定了所允许的字符的确切个数。必须大于0
    whiteSpace Specifies how white space (line feeds, tabs, spaces, and carriage returns) is handled
    指定了空白该怎样被处理(换行符,制表符,空格符和回车符)

    String Data Types
    字符串数据类型

    Note that all of the data types below derive from the String data type (except for string itself)!
    要注意下面所有的数据类型都是从字符串数据类型里派生出来的(除了字符串本身)

    Name
    名称
    Description
    解释
    ENTITIES
    ENTITY
    ID A string that represents the ID attribute in XML (only used with schema attributes)
    象征XML的ID属性的字符串(只用在schema属性里)
    IDREF A string that represents the IDREF attribute in XML (only used with schema attributes)
    象征XML里的IDREF属性的字符串(只能和schema属性一起使用)
    IDREFS
    language A string that contains a valid language id
    含有正确的语言ID的字符串
    Name A string that contains a valid XML name
    含有一个有效的XML名称的字符串
    NCName
    NMTOKEN A string that represents the NMTOKEN attribute in XML (only used with schema attributes)
    象征XML里的NMTOKEN属性的字符串(只能和schema属性一起使用)
    NMTOKENS
    normalizedString A string that does not contain line feeds, carriage returns, or tabs
    不含有换行符,回车符或制表符的字符串
    QName
    string A string
    一个字符串
    token A string that does not contain line feeds, carriage returns, tabs, leading or trailing spaces, or multiple spaces
    不含有换行符,回车符,制表符,头尾空格,或重复空格的字符串
  • 相关阅读:
    用PHP实现 HTTP断点续传、分块下载文件(Socket)
    织梦cms 判断当前页面是否为首页和栏目页高亮
    Go Exec 僵尸与孤儿进程
    Nginx 配置 SSL,很系统!很完整!解决 Nginx 报错 nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf
    CentOS7安装及配置 Zabbix Server全步骤,超详细教程
    CentOS7安装及配置 Zabbix Agent全步骤,超详细教程
    top查看cpu消耗最高线程
    Kisso 使用笔记(个人总结,一直在更新)
    Android问题总汇
    关于Vue中checkbox复选框的双向数据绑定问题
  • 原文地址:https://www.cnblogs.com/moses/p/2008198.html
Copyright © 2020-2023  润新知