notation
XML Schema notation elementi
❮ To‘liq XML Schema ma’lumotnomasi
Ta’rif va qo‘llanilishi
notation elementi XML hujjat ichidagi XML bo‘lmagan ma’lumotlar formatini tavsiflaydi.
Element haqida ma’lumot
- Ota elementlar: schema
Sintaksis
<notation
id=ID
name=NCName
public=anyURI
system=anyURI
any attributes
>
(annotation?)
</notation>(? belgisi element notation elementi ichida nol yoki bir marta kelishi mumkinligini bildiradi)
| Atribut | Tavsif |
|---|---|
| id | Ixtiyoriy. Element uchun noyob ID belgilaydi |
| name | Majburiy. Element uchun nom belgilaydi |
| public | Majburiy. Ommaviy identifikatorga (public identifier) mos keladigan URI’ni belgilaydi |
| system |
Ixtiyoriy. Tizim identifikatoriga (system identifier) mos keladigan URI’ni belgilaydi |
| any attributes | Ixtiyoriy. Sxemaga oid bo‘lmagan nomlar fazosidagi boshqa har qanday atributlarni belgilaydi |
1-misol
Quyidagi misolda view.exe ko‘ruvchi ilovasidan foydalanadigan gif va jpeg notatsiyalari ko‘rsatilgan:
<?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>
The "image" element in a document could look like this:
<image type="gif"></image>❮ To‘liq XML Schema ma’lumotnomasi
W3Schools Pathfinder
Yutuqlaringizni kuzating – bu bepul!
