XML Schema notation एलिमेंट

वर्णन और उपयोग

notation एलिमेंट XML दस्तावेज़ में गैर-XML डाटा के फॉर्मेट को वर्णित करता है。

एलिमेंट जानकारी

उपस्थिति बार अपरिबद्ध
माता एलिमेंट शेमा
भाव अनोटेशन

व्याकरण

<notation
id=ID
name=NCName
public=anyURI
system=anyURI
किसी अन्य गुण
>
(अनोटेशन?)
</notation>

(? चिह्न को नोटेशन एलिमेंट में इस एलिमेंट के लिए शामिल करें या न करें。)

गुण वर्णन
id वैकल्पिक।इस एलिमेंट के लिए अनूठा ID निर्दिष्ट करें
name अनिवार्य।एलिमेंट के लिए नाम निर्दिष्ट करें
public अनिवार्य।public चिह्नकर्ता के साथ उल्लेखनीय URI निर्देशन
system system चिह्नकर्ता के साथ उल्लेखनीय URI निर्देशन
किसी अन्य गुण वैकल्पिक।non-schema नामस्पति के साथ किसी अन्य गुण को निर्दिष्ट करें。

उदाहरण

उदाहरण 1

इस उदाहरण में 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>