首页 / 数字家庭 / 正文
XML Schema Part 1: Structures Second Edition

Time:2026年01月08日 Read:20 评论:0 作者:mlgyp_com

  The XML representation of the schema for schema documents is presented here

XML Schema Part 1: Structures Second Edition
(图片来源网络,侵删)

  as a normative

  part of the specification, and as an illustrative example of how the XML Schema

  language can

  define itself using its own constructs. The names of XML

  Schema language types, elements, attributes and groups defined here

  are evocative of their purpose, but are occasionally verbose.

  There is some annotation in comments, but a fuller annotation will require

  the use of embedded documentation facilities or a hyperlinked external

  annotation for which tools are not yet readily available.

  Since a schema document is an XML document, it has optional XML and doctype

  declarations that are provided here for completeness. The root

  element defines a new schema. Since this is a schema for

  XML Schema: Structures, the references the XML Schema namespace itself.

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  ]>

  

  

  elementFormDefault="qualified" xml:lang="EN"

  targetNamespace="http://www.w3.org/2001/XMLSchema"

  version="Id: structures.xsd,v 1.2 2004/01/15 11:34:25 ht Exp ">

  

  

  The schema corresponding to this document is normative,

  with respect to the syntactic constraints it expresses in the

  XML Schema language. The documentation (within <documentation> elements)

  below, is not normative, but rather highlights important aspects of

  the W3C Recommendation of which this is a part

  

  

  

  The simpleType element and all of its members are defined

  in datatypes.xsd

  

  

  

  schemaLocation="http://www.w3.org/2001/xml.xsd">

  

  

  Get access to the xml: attribute groups for xml:lang

  as declared on 'schema' and 'documentation' below

  

  

  

  

  

  

  This type is extended by almost all schema types

  to allow attributes from other namespaces to be

  added to user schemas.

  

  

  

  

  

  

  

  

  

  

  

  This type is extended by all types which allow annotation

  other than <schema> itself

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  This group is for the

  elements which occur freely at the top level of schemas.

  All of their types are based on the "annotated" type by extension.

  

  

  

  

  

  

  

  

  

  

  

  This group is for the

  elements which can self-redefine (see <redefine> below).

  

  

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  #all or (possibly empty) subset of {extension, restriction}

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  #all or (possibly empty) subset of {extension, restriction, list, union}

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-schema"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  maxOccurs="unbounded"/>

  

  

  

  

  

  default="" use="optional"/>

  

  use="optional"/>

  

  default="unqualified" use="optional"/>

  

  default="unqualified" use="optional"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  for maxOccurs

  

  

  

  

  

  

  

  

  

  

  

  

  for all particles

  

  

  use="optional"/>

  

  

  

  

  

  for element, group and attributeGroup,

  which both define and reference

  

  

  

  

  

  

  

  'complexType' uses this

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-anyAttribute"/>

  

  

  

  

  

  

  

  

  

  This branch is short for

  <complexContent>

  <restriction base="xs:anyType">

  ...

  </restriction>

  </complexContent>

  

  

  

  

  

  

  

  

  

  

  

  

  

  Will be restricted to required or forbidden

  

  

  

  use="optional">

  

  

  Not allowed if simpleContent child is chosen.

  May be overriden by setting on complexContent child.

  

  

  

  use="optional"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  This choice is added simply to

  make this a valid restriction per the REC

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-complexContent"/>

  

  

  

  

  

  

  

  

  

  

  

  Overrides any setting on complexType parent.

  

  

  

  

  

  

  

  

  

  

  

  

  

  This choice is added simply to

  make this a valid restriction per the REC

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  No typeDefParticle group reference

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-simpleContent"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-complexType"/>

  

  

  

  

  

  A utility type, not for public use

  

  #all or (possibly empty) subset of {substitution, extension,

  restriction}

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  The element element can be used either

  at the top level to define an element-type binding globally,

  or within a content model to either reference a globally-defined

  element or type or declare an element-type binding locally.

  The ref form is not allowed at the top level.

  

  

  

  

  

  

  

  

  

  maxOccurs="unbounded"/>

  

  

  

  

  

  

  

  

  use="optional"/>

  

  use="optional"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  maxOccurs="unbounded"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  maxOccurs="unbounded"/>

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-element"/>

  

  

  

  

  

  group type for explicit groups, named top-level groups and

  group references

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  group type for the three kinds of group

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  This choice with min/max is here to

  avoid a pblm with the Elt:All/Choice/Seq

  Particle derivation constraint

  

  

  

  

  

  

  

  restricted max/min

  

  

  

  

  

  

  

  

  

  

  maxOccurs="unbounded"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  Only elements allowed inside

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-choice"/>

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-sequence"/>

  

  

  

  

  

  

  

  

  

  

  

  use="optional"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  simple type for the value of the 'namespace' attr of

  'any' and 'anyAttribute'

  

  

  

  Value is

  ##any - - any non-conflicting WFXML/attribute at all

  ##other - - any non-conflicting WFXML/attribute from

  namespace other than targetNS

  ##local - - any unqualified non-conflicting WFXML/attribute

  one or - - any non-conflicting WFXML/attribute from

  more URI the listed namespaces

  references

  (space separated)

  ##targetNamespace or ##local may appear in the above list, to

  refer to the targetNamespace of the enclosing

  schema or an absent targetNamespace respectively

  

  

  

  

  A utility type, not for public use

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-attribute"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  id="attributeGroup">

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-attributeGroup"/>

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-include"/>

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-redefine"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-import"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-selector"/>

  

  

  

  

  

  

  

  A subset of XPath expressions for use

  in selectors

  A utility type, not for public

  use

  

  

  

  The following pattern is intended to allow XPath

  expressions per the following EBNF:

  Selector ::= Path ( '|' Path )*

  Path ::= ('https://www.w3.org/TR/xmlschema-1//')? Step ( '/' Step )*

  Step ::= '.' | NameTest

  NameTest ::= QName | '*' | NCName ':' '*'

  child:: is also allowed

  

  

  

  value="(https://www.w3.org/TR/xmlschema-1//)?(((child::)?((ic*:)?(ic*|*)))|.)(/(((child::)?((ic*:)?(ic*|*)))|.))*(|(https://www.w3.org/TR/xmlschema-1//)?(((child::)?((ic*:)?(ic*|*)))|.)(/(((child::)?((ic*:)?(ic*|*)))|.))*)*"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  A subset of XPath expressions for use

  in fields

  A utility type, not for public

  use

  

  

  

  The following pattern is intended to allow XPath

  expressions per the same EBNF as for selector,

  with the following change:

  Path ::= ('https://www.w3.org/TR/xmlschema-1//')? ( Step '/' )* ( Step | '@' NameTest )

  

  

  

  value="(https://www.w3.org/TR/xmlschema-1//)?((((child::)?((ic*:)?(ic*|*)))|.)/)*((((child::)?((ic*:)?(ic*|*)))|.)|((attribute::|@)((ic*:)?(ic*|*))))(|(https://www.w3.org/TR/xmlschema-1//)?((((child::)?((ic*:)?(ic*|*)))|.)/)*((((child::)?((ic*:)?(ic*|*)))|.)|((attribute::|@)((ic*:)?(ic*|*)))))*"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  The three kinds of identity constraints, all with

  type of or derived from 'keybase'.

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-unique"/>

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-keyref"/>

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-notation"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  A utility type, not for public use

  

  A public identifier, per ISO 8879

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"/>

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  notations for use within XML Schema schemas

  

  

  system="http://www.w3.org/2000/08/XMLSchema.xsd"/>

  

  system="http://www.w3.org/TR/1998/REC-xml-19980210"/>

  

  

  

  Not the real urType, but as close an approximation as we can

  get in the XML representation

  

  

  

  

  

  

  

标签:
关于我们
民贸生活服务网为您整理的分类信息及实用建议,涵盖生活各方面需求:【房产资讯】二手房市场:近期政策利好,首付比例下调至15%,建议关注地铁沿线学区房租房指南:9月开学季租金普遍上涨5-10%,建议提前1个月锁定房源新房动态:智能家居成标配,精装房交付标准升级【美食探店】• 必吃榜单:秋季限定蟹黄汤包上市(推荐老字号王记)• 网红打卡:新开业的星空主题餐厅,人均150元需提前3天预约• 省钱攻略:每周三半价日活动覆盖30+连锁餐厅【社区活动】✓ 9月8日社区文化节(免费参与包粽子比赛)✓ 每周六上午跳蚤市场(二手家具5折起)✓ 中秋晚会节目招募(报名截止9月15日)【婚恋服务】❤ 实名认证相亲会:9月14日七夕专场(需提供学历/房产证明)❤ 线上匹配:推荐知心红娘小程序,AI算法匹配度达85%【智能生活】• 家电换新:以旧换新补贴最高2000元(限9月30日前)• 黑科技:可语音控制的智能窗帘套装(安装仅需2小时)【金融理财】💰 大额存单利率:3年期2.85%(较上月上涨0.1%)💰 黄金投资:金价回调至480元/克,适合分批建仓【旅游推荐】✈ 错峰游:9月三亚机票价格回落40%🚗 周边游:新开通的环湖绿道适合骑行(租车点:社区服务中心)【生活服务】• 家政保洁:开学季大扫除预约已排至9月20日• 维修服务:空调清洗特惠99元(需提前3天预约)【二手市场】📌 急转:9成新婴儿床(原价1800元,现价600元)📌 求购:求购二手钢琴(预算3000元内)实用建议:房产交易前务必查验五证原件相亲时建议选择公共场所首次见面旅游旺季建议购买取消险(可退80%费用)需要更详细的某类信息,欢迎随时告知!
快捷菜单1
新手上路
免费注册
帮助中心
后台配置
扫码关注
Copyright ©2004-2025 Comsenz Inc.Powered
蜀ICP备2025157516号-4