Errata

Learning XSLT

Errata for Learning XSLT

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 3
2nd paragraph in the section How XSLT Works

the url - http://www.oreilly.com/catalog/9780596003272/learnxslt.zip
should be: - http://examples.oreilly.com/9780596003272/

Anonymous    Jul 01, 2007
Printed
Page 11

change: "...type the following line in a Unix shell window or ..."
to: "...type the following line in a Unix shell window (use Xalan) or ..."
note: where Xalan is in monospace font

Anonymous    Jul 01, 2007
Printed
Page 19
Warning/Caution paragraph

Trying to load whitespace-pi.xml in firefox gives:

Error loading stylesheet: (null)
file:///.../learningxslt2/ch02/ws.xsl

Modifying the file to point to whitespace.xsl seems to give the intended results.

Anonymous   
PDF
Page 25
outline on top of page

A QName may have a prefix, such as xsl, which is separated by a colon from its local part or local name, as in stylesheet. A QName may also consist only of a local part.

Shouldn't it be:
A QName may have a prefix, such as xsl, which is separated by a colon from its local part or local name, as in xsl:stylesheet. A QName may also consist only of a local part (just stylesheet).

Note from the Author or Editor:
Add parenthetical phrase to sentence.

A QName may also consist only of a local part.

becomes:

A QName may also consist only of a local part (just stylesheet, for example).

stylesheet is in monospace font.

Anonymous  Jan 25, 2016 
Printed
Page 38
first line in first code fragment in "Outputting Processing Instructions"

<xsl:processing-instruction name="xml-stylesheet">href="new.css"
should be:
<xsl:processing-instruction name="xml-stylesheet">href="processing.css"

Note from the Author or Editor:
Yes, this is correct. "new.css" should be "processing.css"

Anonymous   
Printed
Page 52
xalan example

xalan name.xsl encoding.xsl

NOW READS:
xalan name.xml encoding.xsl

Anonymous    Dec 01, 2004
Printed
Page 57
notalone.xsl example

3rd line of example has "<xsl:output" in italics.

Anonymous    Jul 01, 2007
Printed
Page 67
7th line of program listing wg.xsl

'lu {font-size: 16pt}' should be 'ul {font-size: 16pt}'
Justification. The CSS Stylesheet uses HTML element selectors to style the resulting transformed document and there is no 'lu' tag in HTML.

Note from the Author or Editor:
This is correct. "lu" should be "ul"

Anonymous   
Printed
Page 80
example output

"\___namespace 'xmlns' = "urn:wyeast-net:invoice'

NOW READS:
"\___namespace '' = "urn:wyeast-net:invoice'

Anonymous    Dec 01, 2004
Printed
Page 88
Below last para / before XML listing (also on page header on pg 89 & 90)

The XML listing is precedeed with the wrong heading description (in italics) saying what it is. It should be 'Example 4-3. An XML list Candian provinces' not 'An XML list of contributors to XML 1.0'

Note from the Author or Editor:
Correct. Should be:

Example 4-3. An XML list of Canadian provinces

Anonymous   
Printed
Page 93
Table 4.2

Parent Forward
should be:
Parent Reverse

Anonymous   
Printed
Page 103
8th Row of table 5-1

Description of floor(number) function is as follows:
Returns the largest integer (closest to positive infinity) that is not less than the argument.
The word "less" should be "more".

Anonymous    Jul 01, 2007
Printed
Page 135
Result example at the bottom of the page

xalan -i 1 price.xml frag.xsl

NOW READS:
saxon price.xml frag.xsl

Anonymous    Dec 01, 2004
Printed
Page 139
middle of the page

"xalan europe.xsl sort.xsl"

NOW READS:
"xalan europe.xml sort.xsl"

Anonymous    Dec 01, 2004
Printed
Page 139

change: "The plain text, alphabetized result tree..."
to: "The plain text lexicographically alphabetized result tree..."

Anonymous    Jul 01, 2007
Printed
Page 145
1st paragraph

"So far, you have sorted nodes alphabetically. You can also..."

NOW READS:
"So far, you have sorted nodes alphabetically (actually, lexicographically). You can also..."

Anonymous    Dec 01, 2004
Printed
Page 152
1st paragraph of "The lang and case-order Attributes"

"...is supposed to determine the language system environment."
should be:
"...is supposed to determine the language from the system enviroment."

Anonymous    Jul 01, 2007
Printed
Page 203
Last xalan example on page

xalan -p kp 'es' un.xml kp.xsl

NOW READS:
xalan -p kp "'es'" un.xml kp.xsl

Anonymous    Dec 01, 2004
Printed
Page 205
Last xalan example on page

xalan -p cr 'Oregon' states.xml cross.xsl

NOW READS:
xalan -p cr "'Oregon'" states.xml cross.xsl

Anonymous    Dec 01, 2004
Printed
Page 217
Xalan example, top of page

xalan africa.xsl comma.xsl

NOW READS:
xalan africa.xml comma.xsl

Anonymous    Dec 01, 2004
Printed
Page 242
4th paragraph

"Only instructions elements..."

NOW READS:
"Only instruction elements..."

Anonymous    Dec 01, 2004
Printed
Page 253
Last paragraph before summary

"...you will get the same result with excludeonlit.xsl that you did with exclude.lit."
should be
"...you will get the same result with excludeonlit.xsl that you did with exclude.xsl."

Anonymous    Jul 01, 2007
Printed
Page 291
First paragraph of "Running an XSLT Processor from Java" section

"Java Version 1.4...comes standard with JAXP."
should be
"JAXP comes standard with Java Version 1.4..."

Anonymous    Jul 01, 2007
Printed
Page 351
Column 2, near botom

xls:exclude-result-prefixes

should be

xsl:excude-result-prefixes

Michael Fitzgerald
Michael Fitzgerald
 
May 26, 2011