XML Schema notation ఎలిమెంట్

నిర్వచనం మరియు ఉపయోగం

notation ఎలిమెంట్ నోటేషన్ ఎలిమెంట్ లో అన్ని అస్థిర డాటా ఫార్మాట్లను వివరిస్తుంది.

ఎలిమెంట్ సమాచారం

ప్రకటించు సంఖ్య అనివార్యం
ప్రాతిపదిక స్కీమా
విషయం అనోటేషన్

విధానం

<notation
id=ID
name=NCName
public=anyURI
system=anyURI
ఏదైనా అటీర్బ్యూట్స్
>
(అనోటేషన్?)
</notation>

(? సింబోల్ నోటేషన్ అంతర్భాగంలో ఈ సింబోల్ ప్రకటించబడదు లేదా ఒకసారి ప్రకటించబడవచ్చు。)

అటీర్బ్యూట్ వివరణ
id ఎంపికమైన. ఈ ఎలిమెంట్ యొక్క ప్రత్యేకమైన ID నిర్వచించండి.
name అనివార్యం. ఈ ఎలిమెంట్ పేరుని నిర్వచించండి.
public అనివార్యం. public పేరునికి సంభందించిన URI ముందస్తు పరిచయం.
system system పేరునికి సంభందించిన URI ముందస్తు పరిచయం.
ఏదైనా అటీర్బ్యూట్స్ ఎంపికమైన. నాణ్యతలేని నామకాలయిన స్పేస్ పై ఏదైనా అటీర్బ్యూట్స్ నిర్వచించండి.

ఉదాహరణ

ఉదాహరణ 1

ఈ ఉదాహరణ వీక్షణ అనువర్తనం view.exe ఉపయోగించి gif మరియు jpeg ఫార్మాట్లను చూపిస్తుంది:

<?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>