XML Schema import ປະກອບ

ການອະທິບາຍ ແລະ ການນໍາໃຊ້

import ປະກອບສະເພາະນຳໃຊ້ສຳລັບເພີ່ມມາດຕະການຫຼາຍສະບັບສະມາຊິກຕ່າງກັນຫຼາຍສະບັບຂອງ schema.

ຂໍ້ມູນປະກອບ

ຈຳນວນການເກີດ ບໍ່ມີຄວາມຈໍາກັດ
ປະກອບພື້ນ schema
ຂັ້ນຂອງຂັ້ນ annotation

ວິທະຍາສາດ

<import
id=ID
namespace=anyURI
schemaLocation=anyURI
any attributes
>
(annotation?)
</import>
ປະກອບ ອະທິບາຍ
id ບໍ່ມີຄວາມຕ້ອງການ。ກໍານົດ ID ສະບາຍສະເພາະຂອງປະກອບສັນ.
namespace ຕ້ອງການ。ກໍານົດ URI ຂອງສະມາຊິກຂອງຈຸດເຂົ້າ.
schemaLocation Optional. Specify the URI of the imported namespace.
any attributes Optional. Specify any other attributes with non-schema namespaces.

(? Symbol declaration in the import element, which may occur zero or one times.)

Example

The following example shows how to import a namespace:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.codew3c.com/schema"/>
..
..
..
</xs:schema>