url - Universität zu Lübeck
url - Universität zu Lübeck
url - Universität zu Lübeck
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
18 CHAPTER 2. FUNDAMENTALS<br />
plies that the element has to appear exactly once.<br />
The element is assigned to the user-defined type positiveNumber type<br />
that is defined in line 15 as a restriction of the integer type. Another user-defined<br />
type is assigned to the element . A description contains a <br />
element that is of a mixed content type consisting of and elements.<br />
Due to the keyword mixed="true" in line 26 an atomic text value can<br />
appear between the elements and .<br />
A great strength of XML Schemas is that they are written in XML syntax, so that<br />
existing XML editors and parsers can be reused. XML Schema can be created and<br />
processed by any software that works with XML documents. Especially an XML<br />
Schema can be validated against the XML Schema that defines valid XML Schema<br />
documents.<br />
Because XML Schemas tend to be large XML documents (especially larger than<br />
DTDs) it is difficult to perceive them. Therefore, a graphical representation is often<br />
more comfortable. Figure 2.7 presents XMLSpys [4] visualization of the sample<br />
schema.<br />
Figure 2.7: A graphical representation of an XML Schema<br />
Although it is semantically possible to create an XML Schema c that defines the<br />
union of two XML Schemas a and b this is not processed as expected by the validating<br />
parsers like XMLSpy . Syntactically, c can be defined using the inheritance<br />
feature of XML Schema (see appendix 10.3). Therefore, as DTDs, XML Schema<br />
are not closed under union; details can be found in [86, 87].