Saturday, January 12, 2008

XML Master cert study notes during 9 - 11 Jan 08

Finished Day 7 studying and the Part I is completed.

Day 7 contents included more details on the XML Schema syntax.

It is including,

- using different facets with the restrictions
- define anonymous type
- create comments with <xsd:annotation .../>, <xsd:documentation .../> and <xsd:appInfo ... />
- declaring empty element and mixed-content elements
- declaring element group, attribute group and all group
- declaring choices that with the same usage as the element define in DTD <!ELEMENT document (chinesename | englishname) >
- using namespaces in schemas

As the end of this chapter reminded, contents in Day 7 only part of the complete XML Schema and more about the XML Schema inherits is not included. This caused me to thinking about what is the exactly scope of the XML Master (Basic) schema. And, I check the scope from XML Master official web site to prepare this excel.

XML Master (Basic) Cert scope and reference information mapping

In this chapter, I feel better understand the using namespaces in schemas. Specially clarified the meaning and different between qualified / unqalified local element and attributes. e.g.,

Case I:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamesapce="http://chanapps"
attributeFormDefault="qualified" elementFormDefault="qualified">
...
</xsd:scheme>

Case II:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema targetNamespace="http://chanapps" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqulified" elementFormDefault="unqualified">
...
</xsd:schema>

Case III:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema targetNamespace="http://chanapps" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified" elementFormDefault="qualified">
...
</xsd:schema>

Case IV:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema targetNamespace="http://chanapps" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="unqualified">
...
</xsd:schema>






No comments:

XML Master Cert Group

Google Groups
XML Master Certification
Visit this group