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 का उपयोग करते हुए गफ़िया और जेपीईजी फ़ॉर्मेट के 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>