五月综合缴情婷婷六月,色94色欧美sute亚洲线路二,日韩制服国产精品一区,色噜噜一区二区三区,香港三级午夜理伦三级三

您現(xiàn)在的位置: 365建站網(wǎng) > 建站教程 > Schema 教程 > XML Schema notation 元素

XML Schema notation 元素

此節(jié)有 223 人學(xué)習(xí)過     參與評論

定義和用法

notation 元素描述 XML 文檔中非 XML 數(shù)據(jù)的格式。

元素信息

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

語法

<notation
id=ID
name=NCName
public=anyURI
system=anyURI
any attributes
>

(annotation?)

</notation>

(? 符號聲明在 notation 元素中該元素可出現(xiàn)零次或一次。)

屬性 描述
id 可選。規(guī)定該元素的唯一的 ID。
name 必需。為元素規(guī)定名稱。
public 必需。與 public 標(biāo)識符相對應(yīng)的 URI 引用。
system 與 system 標(biāo)識符相對應(yīng)的 URI 引用。
any attributes 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。

實(shí)例

例子 1

下面的例子通過使用一個查看應(yīng)用程序 view.exe 來顯示 gif 和 jpeg 格式的 notation:

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

<xs:notation name="gif" public="image/gif" system="view.exe"/>
<xs:notation name="jpeg" public="image/jpeg" system="view.exe"/>

<xs:element name="image">
  <xs:complexType>
    <xs:simpleContent>
      <xs:attribute name="type">
        <xs:simpleType>
          <xs:restriction base="xs:NOTATION">
            <xs:enumeration value="gif"/>
            <xs:enumeration value="jpeg"/>
          <xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

</xs:schema>

文檔中的 "image" 元素是這樣的:

<image type="gif"></image>

如對本文有疑問,請?zhí)峤坏浇涣髡搲瑥V大熱心網(wǎng)友會為你解答??! 點(diǎn)擊進(jìn)入論壇

發(fā)表評論 (223人查看,0條評論)
請自覺遵守互聯(lián)網(wǎng)相關(guān)的政策法規(guī),嚴(yán)禁發(fā)布色情、暴力、反動的言論。
昵稱:
最新評論
------分隔線----------------------------
Schema 教程目錄

其它欄目

· 建站教程
· 365學(xué)習(xí)

業(yè)務(wù)咨詢

· 技術(shù)支持
· 服務(wù)時間:9:00-18:00
365建站網(wǎng)二維碼

Powered by 365建站網(wǎng) RSS地圖 HTML地圖

copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號