Corrections to Chapter 16 of XML in a Nutshell, 2nd edition, XML Schemas

There is one consistent problem in this chapter. The xs prefix is used, but the xsd prefix is declared. For example, at the top of p. 257:

<?xml version="1.0"?>
<xs:schema xmlns:xsd="">
 <xs:element name="name" type="xs:string"/>

should be

<?xml version="1.0"?>
<xs:schema xmlns:xs="">
 <xs:element name="name" type="xs:string"/>

This also occurs on p. 263, 264 (twice), 266, 274, 278, 279 (twice).

p. 258: In the last paragraph before the Annotation heading the sentence "When writing schema declarations, it is an error to declare two things of the same type at the same scope" should read "When writing schema declarations, it is an error to declare two of the same kinds of things (e.g. two elements, two attributes, or two types) with the same name at the same scope."

p. 272: In the last code fragment, change maxInclusive to minInclusive and maxExclusive and minExclusive. The fragment should be:

<xsd:minInclusive value="1"/>
<xsd:minExclusive value="0"/>

p. 272: In the last paragraph, change minExclusive and minInclusive to maxExclusive and maxInclusive. The second sentence in the paragraph should read, "For example, if maxExclusive were set to 5.0, the equivalent maxInclusive value would require an infinite number of nines to the right of the decimal point (4.99999...)."

[ XML in a Nutshell Corrections | XML in a Nutshell Home Page | Table of Contents | Examples | Order from Amazon ]

Copyright 2002, 2004 Elliotte Rusty Harold
Last Modified June 8, 2004