XML Schema notation ਐਲੀਮੈਂਟ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

notation ਐਲੀਮੈਂਟ XML ਦਸਤਾਵੇਜ਼ ਵਿੱਚ ਗੈਰ XML ਡਾਟਾ ਦਾ ਫਾਰਮੈਟ ਵਰਣਨ ਕਰਦਾ ਹੈ。

ਐਲੀਮੈਂਟ ਸੂਚਨਾ

ਸ਼ੁਰੂ ਹੋਣ ਦੀ ਗਿਣਤੀ ਬੇਸ਼ਕ
ਮੂਲ ਐਲੀਮੈਂਟ schema
ਸਮੱਗਰੀ annotation

ਗਰਾਫਿਕ

<notation
id=ID
name=NCName
public=anyURI
system=anyURI
ਕੋਈ ਅਟਰੀਬਿਊਟ
>
(annotation?)
</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>