XML Schema notation ਤੱਤ

ਵਿਵਰਣ ਅਤੇ ਵਰਤੋਂ

notation ਤੱਤ ਐਕਸਮਲ ਐਕਸਪ੍ਰੈਸ਼ਨ ਲਈ ਗਿਣਤੀ ਦਾ ਵਰਣਨ ਕਰਦਾ ਹੈ ਜੋ ਐਕਸਮਲ ਐਕਸਪ੍ਰੈਸ਼ਨ ਵਿੱਚ ਨਾ-XML ਸਮੱਗਰੀ ਦਾ ਫਾਰਮੈਟ ਹੈ。

ਤੱਤ ਸੂਚਨਾ

ਪ੍ਰਕਿਰਿਆ ਬੰਧਤਾ ਨਹੀਂ
ਮੂਲ ਤੱਤ schema
ਸਮੱਗਰੀ annotation

ਵਿਚਾਰ

<notation
id=ID
name=NCName
public=anyURI
system=anyURI
ਕੋਈ ਵਿਸ਼ੇਸ਼ਤਾਵਾਂ
>
(annotation?)
</notation>

(? ਨੋਟੇਸ਼ਨ ਤੱਤ ਵਿੱਚ ਇਹ ਤੱਤ ਕੋਈ ਵੀ ਸਮਾਂ ਜਾਂ ਇੱਕ ਵਾਰ ਹੋ ਸਕਦਾ ਹੈ。)

ਵਿਸ਼ੇਸ਼ਤਾ ਵਰਣਨ
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>