最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

XML Schema redefine 元素

定義和用法

redefine 元素允許在當(dāng)前 Schema 中重新定義從外部架構(gòu)文件中獲取的簡單和復(fù)雜類型、組和屬性組。

元素信息

出現(xiàn)次數(shù) 無限制
父元素 schema
內(nèi)容 annotation、attributeGroup、complexType、group、simpleType

語法

<redefine
id=ID
schemaLocation=anyURI
any attributes
>

(annotation|(simpleType|complexType|group|attributeGroup))*

</redefine>
屬性 描述
id 可選。規(guī)定該元素的唯一的 ID。
schemaLocation 必需。對 schema 文檔位置的 URI 引用。
any attributes 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。

實(shí)例

例子 1

下面的例子展示了一個(gè) schema,Myschama2.xsd,其中存在由 Myschama1.xsd 規(guī)定的元素。pname 類型被重新定義。根據(jù)此 schema,被 pname 約束的元素必須以 "country" 元素結(jié)束:

Myschema1.xsd:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:complexType name="pname">
  <xs:sequence>
    <xs:element name="firstname"/>
    <xs:element name="lastname"/>
  </xs:sequence>
</xs:complexType>

<xs:element name="customer" type="pname"/>

</xs:schema>

Myschema2.xsd:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:redefine schemaLocation="Myschema1.xsd">
  <xs:complexType name="pname">
    <xs:complexContent>
      <xs:extension base="pname">
        <xs:sequence>
          <xs:element name="country"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:redefine>

<xs:element name="author" type="pname"/>

</xs:schema>
礼泉县| 祁东县| 绥阳县| 永康市| 美姑县| 上高县| 合肥市| 宣威市| 淮南市| 平南县| 黔南| 秭归县| 昌江| 大同市| 西平县| 北碚区| 九龙坡区| 襄城县| 邵东县| 个旧市| 堆龙德庆县| 福鼎市| 兴山县| 临颍县| 丹阳市| 象山县| 晋州市| 龙胜| 循化| 陆川县| 乐昌市| 梧州市| 五大连池市| 昔阳县| 防城港市| 定安县| 连江县| 贵德县| 吴川市| 长泰县| 肇东市|