[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Schema Structure - Response to request for structure
Here it is. This describes the way the 8 main document schemas are structured. The header portions (up till and including "Imports") are applicable across all schemas in the "xsd" directory, including Reusable, CodeLists, CCT and CoreComponentParameters. For the last 2 (CCT and CoreComponentParameters), the non-applicable portions are addressed by the description "if applicable". Hope this helps. ------------------------------------------------------------------ XML Declaration <!-- ===== XML Declaration ===== --> <?xml version="1.0" encoding="UTF-8" ?> <!-- Comment: A UTF-8 encoding is adopted throughout UBL schemas. --> <!-- ===== Copyright Information ===== --> <xsd:schema <!-- ===== Version ===== --> [ version attribute first if used, followed by ] <!-- ===== Namespaces ===== --> [ xmlns:xsd attribute if applicable, followed by targetNamespace attribute if applicable, followed by xmlns default namespace attribute if applicable, followed by non-codelist namespace declarations if applicable, followed by codelist namespace declarations, followed by ] <!-- Comment: codelist namespaces are declared only if they are used in the schema, and are otherwise not declared. --> <!-- ===== Form Defaults ===== --> [ elementFormDefault attribute if applicable, followed by attributeFormDefault attribute if applicable, followed by ] <!-- ===== Others ===== --> [ other schema attributes with schema namespace, followed by other schema attributes with non-schema namespace ] > <!-- ===== Imports ===== --> CoreComponentParameters (metadata schema), followed by CCT if applicable, followed by RT if applicable, (NOT USED) followed by DT if applicable, (NOT USED) followed by BBIEs if applicable, (NOT USED) followed by ABIEs if applicable, (AS Reusable CAT), followed by codelist schemas if applicable followed by <!-- Comment: CoreComponentParameters is the most independent schema as it does not depend on other imports, and would need to be kept this way. CCT currently is independent of CoreComponentParameters but this may change if CCT has use of CoreComponentParameters. RT, DT, BBIE imports are not used in UBL. CAT is imported by all document schemas. codelist schemas are imported only if they are used within the document, and otherwise not imported. --> <!-- The following is applicable for Main Document schemas only --> <!-- ===== Global Attributes ===== --> (NOT USED) Root Element <!-- ===== Root Element ===== --> <!-- ===== Root Element's Type Definition ===== --> <!-- Comment: The root element's type definition is defined immediately following the definition of global root element to provide clear visibility of the root element's type, of which this particular schema is all about. --> <!-- ===== Referenced Element Declarations ===== --> <!-- Comment: These elements are defined only when they are referenced within the Root Element's Type Definition. Listing is sorted in alphabetized ascending order. --> ------------------------------------------------------------------ Best Regards, Chin Chee-Kai SoftML Tel: +65-6820-2979 Fax: +65-6743-7875 Email: cheekai@SoftML.Net http://SoftML.Net/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]