XML Schema องค์ประกอบคำอธิบายประกอบ
ความหมายและการใช้งาน
องค์ประกอบคำอธิบายประกอบเป็นองค์ประกอบระดับบนสุดที่กำหนดไว้คำอธิบายประกอบสคี
องค์ประกอบข้อมูล
- องค์ประกอบหลัก: องค์ประกอบใด ๆ
ไวยากรณ์
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* เข้าสู่ระบบบอกว่าองค์ประกอบที่สามารถเกิดขึ้นได้เป็นศูนย์หรือมากกว่าครั้งในองค์ประกอบบันทึกย่อ.)
คุณสมบัติ | ลักษณะ |
---|---|
ID | ไม่จำเป็น ตัวระบุที่ไม่ซ้ำกันขององค์ประกอบ |
คุณลักษณะใด ๆ | ไม่จำเป็น มันระบุอื่น ๆ แอตทริบิวต์ namespace ที่ไม่ใช่สคี |
ตัวอย่างที่ 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
XML Schema สมบูรณ์อ้างอิง