Wrox Home  
Search

Topic: XML

XSLT: Programmer's Reference, 2nd Edition (0764543814) cover image

XSLT: Programmer's Reference, 2nd Edition

Michael Kay
ISBN: 978-0-7645-4381-4
Paperback
1008 pages
May 2001
This title is out-of-print and not currently available for purchase from this site.


Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
0 Table of Contents: page numbers for Chapter 7 (pages xxii-xxvi)

Thanks to Dan Glickman for spotting this one. In the Table of Contents, the page numbers for the sections "namespace-uri" through "Summary", are all one page out (one page less than they should be)

05-Jun-01 1
230 Closing tag in wrong place.

Thanks go to Viktor Heimonen for pointing this one out.

In the code block at the top of the page, the closing tag is at the end of the second line. It should be at the end of the third line, after the namespace declaration.

22-May-01 1
28 URI is Uniform Resource Identifier

Thanks to Eugene Morozov for submitting this correction.

At the beginning of the last paragraph, the book says, "Namespaces are identified by a Unique Resource Identifier (URI)." URI is a "Uniform Resource Identifier", not a "Unique Resource Identifier".

03-Dec-01 1
36 Missing guillemets

Second to last line before final code block:

select="book/author/first-name"

&npsp;&npsp;&npsp;&npsp;...should be expressed

?select="book/author/first-name"?
(using guillemets)

18-Sep-02 1
58 XPath tree diagram

Thanks to Paul Larson for spotting this.

In the middle row of the XPath tree diagram in the centre of the page, the centre cells of the second, fourth, and sixth boxes should read "noun", "verb, and "noun", respectively.

30-May-01 1
82 Incorrect page reference

Thanks again to Gustaf Jarnling for spotting this one.

The first paragraph reads:

"... how to use modes are in Chapter 4, page 323 and an example ..."

The section "Using Modes" is actually found in Chapter 4, page 320

22-May-01 1
91 Incorrect page reference for Literal section

Thanks to Mike Snowden for spotting this.

Towards the bottom of the page, there is a page reference for a section entitled "Literal". It should say page 389, not page 388

24-May-01 1
93 Extra angle bracket in code block

Thanks to Mike Snowden for pointing out this one.

In the code block at the foot of the page, there is a surplus closing angle bracket at the end of the third line that shouldn't be there.

24-May-01 1
95 elements should be self-closing

Thanks to Derrf Seitz for submitting this erratum. The two <xsl:value-of> elements on this page should be self-closing (that is they should end ../>)

08-Oct-01 1
95 xsl:value-of select attributes

Thanks to Richard Day for spotting this.

When the closing tags were added to the <xsl:value-of> elements, this seems to have mangled the end of the select attributes. These elements should read:

<xsl:value-of select="name($months/*[position()=$mm])" />

and:

<xsl:value-of select="name(xx:node-set($months)/*[position()=$mm])" />

02-Dec-02 1
101 Incorrect output shown

Thanks to Dan Glickman for this. The output shown on the page says "XSLT 1.1 Programmer's Reference..". It should say "XSLT Programmer's Reference.."

25-Jun-01 1
104 Incorrect output shown

Thanks to Dan Glickman for this.

The output shown on the page says "XSLT 1.1 Programmer's Reference..". It should say "XSLT Programmer's Reference.."

25-Jun-01 1
113 Spurious page reference information printed

Thanks to Gustaf Jarnling for spotting this.

At the bottom of the page, we have the text "..calls this facility Literal Result Element as Stylesheet113." The 113 shouldn't be there, please ignore it!

30-May-01 1
114 Incorrect page reference

Thanks again to Gustaf Jarnling for alerting us to this.

books.xml is listed on page 77, not 59 as we state towards the bottom of the page.

30-May-01 1
121 Typo in figure
Thanks to Dan Glickman for spotting this.

There's a typo in the figure at the bottom of the page. As the element is <price>, the source tree should say price, not Price
25-Jun-01 1
125 Date.toString() should be Date:toString()

Thanks to Viktor Heimonen for spotting this one.

At the top of the page, in the italicized background box, there is a typo. Where it says Date.toString(), it should say Date:toString()

30-May-01 1
128 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 544. It should say 545.

25-Jun-01 1
128 img tag should be self-closing

Thanks to Erik Abbink for submitting this correction.

The <img> tag in the code on this page should be self-closing.

15-Nov-01 1
133 Incorrect implements-prefix attribute

Thanks go to Robin Meade for bringing this one to our attention.

In the code block towards the foot of the page, we've incorrectly used an implements-prefix="Math" attribute for the <xsl:script> element. It should be implements-prefix="Date"

15-May-01 1
134 Typo in namespace declaration

Thanks to Robin Meade for spotting this one.

The first example on this page declares a js namespace but then goes on to use an ms namespace. The namespace declaration should say:
xmlns:ms="javascript:my-extensions"

15-May-01 1
139 Incorrect parentheses in code example

Thanks again to Viktor Heimonen for pointing out this one.

In the gray code block, the parentheses in the second line are incorrect. The line should read:
starts-with(system-property('xsl:vendor'), 'xalan')">

30-May-01 1
142 Whitespace characters haven't printed

The characters denoting whitespace characters at the bottom of the page haven't printed. There should be a newline character at the end of each line except the last, a tab at the beginning of each line except the first and the last, and three spaces after the tab before each of the three lines between the place-of-work tags.

30-Apr-01 1
143 Some whitespace characters have not printed

In the code block at the top of the page, there should be newline characters (in black on a gray background) at the end of three lines starting with thge place-of-work oopening tag. The characters at the end of the second and third lines should be the same as the first (that is, white newline characters on a black background).

30-Apr-01 1
157 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 532. It should be to 533

25-Jun-01 1
167 Example code incorrect

Thanks to Al Cadalzo for submitting this erratum.

The second line in the first block of example code on this page is incorrect. It should read:
<xsl:attribute name="border">2</xsl:attribute>

15-Oct-01 1
169 Output in code example wrong.

Thanks to David Nesbitt for alerting us to this mistake.

In the second code box on the page, the width attribute shown in the output is incorrect. It should be <table ns001:width="200"...

03-Sep-01 1
185 Correction to code at top of page

Thanks to Ian Limn for supplying us with this correction.

The third line needs to read:
<xsl:sort select="count(LINE)" data-type="number"/>, because the sort type defaults to "text". Without this correction, the code will not work as intended with speech longer than 9 lines

12-Nov-01 1
199 Typo in code

Thanks to Dan Glickman for spotting this.

In the code block towards the bottom of the page, it should say <xsl:variable name="node-id"..(not "note-id")

25-Jun-01 1
245 Missing closing tag characters.

At the end of the single line xsl:key code block in the middle of the page, there is a missing "/>" at the end of the line.

30-Apr-01 1
258 Page references incorrect

Thanks to Dan Glickman for spotting this.

There are page references to 530 and 536 on the page. They should be to 531 and 537 respectively

25-Jun-01 1
263 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 559. It should be to 560.

25-Jun-01 1
319 First line of code printed twice

Thanks to Erik Abbink for submitting this correction. The first line of code has been erroneously printed twice.

15-Nov-01 1
324 Default value of disable-output-escaping is no

Thanks to David Nesbitt for spotting this error.

The text on line 3 of the paragraph after the bullets should read:

The default value is <<no>>. The value <<yes>> may be ignored in some
circumstances...

03-Sep-01 1
337 Incorrect page reference

Thanks to Amin Mohadjer (Aditi) for pointing out this one.

In the first paragraph on the page, there is a incorrect page reference to a fully worked example in Chapter 7. This should read 555, not 553.

13-Jun-01 1
340 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 544. It should be to 545.

25-Jun-01 1
341 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 559. It should be to 560.

25-Jun-01 1
358 Symbol not printed

An "R in circle", ?, hasn't printed on this page. The last sentence of the third paragraph from the bottom should read: "I find it helpful to think of an AbsoluteLocationPath <</X>> as an abbreviation for an imaginary expression <<?/X>>, and <</>> as an abbreviation for <<?>>, where <<?>> represents the document root node.

30-Apr-01 1
360 Non-trivial AndExpr consists of TWO or more EqualityExpr

Thanks to SATO Naoki for submitting this error. At the bottom of the page the book states, "A non-trivial AndExpr consists of one or more EqualityExpr..". It should say "A non-trivial AndExpr consists of two or more EqualityExpr.."

05-Nov-01 1
361 Strings are converted to Boolean true if their length is non-zero

Thanks to Bradley Grainger for spotting this one.

In the second to last example in the Examples table, the book should say "...converted to the Boolean true if their length is non-zero" not "if their length is zero"

17-Jul-01 1
417 "comparing" should read "converting"

Thanks to Bradley Grainger for alering us to this one.

In the sixth line up from the bottom of the page, we state "...the result of comparing the string operand...". This should read "...the result of converting the string operand..."

17-Jul-01 1
426 Page reference incorrect

At the bottom pf the page, there is a page reference to an example in Appendix A. This reference should read 721, not 706.

30-Apr-01 1
452 id() is a core XPath function

Thanks to Jeff Yemin for submitting this. In the table, the id() function has a cross next to it. As it is part of the XPath core functions, it should have a tick next to it.

03-Oct-01 1
458 "Format" section in wrong place

Thanks to Ant??nio Ferreira for alerting us to this one.

The "Format" section for the "contains" function is in the wrong place. It should be below the "Defined in" section.

17-Jul-01 1
504 Missing double quote in example tag

Page 504, middle of the page.

Reads: <xsl:for-each select=key('country-group', @country)">

Should be: <xsl:for-each select="key('country-group', @country)">

Note the missing double quote.

03-Apr-02 1
520 Expessions in last paragraph

Thanks to Stephen Ng for submitting this correction. The last paragraph on the page should read:

In all these cases, the safest approach is not to write <<name()!='description'>>, but rather to write <<local-name()!='description' and namespace-uri()=''>>

13-Dec-01 1
530 Missing ']' mark in code sample

In copies of this book printed prior to March 2002, there is a missing closing square bracket in the fourth code example. i.e.:

????????<xsl:for-each select="*[not(self::notes)">

should be:

????????<xsl:for-each select="*[not(self::notes)]">

10-Oct-02 1
631 Page reference incorrect

Thanks to Dan Glickman for spotting this.

There is a page reference to 606. It should be to 604.

25-Jun-01 1
657 Diagram incorrect

Thanks to SATO Naoki for submitting this correction.

In the diagram at the bottom of the page, the first line of the bottom table should read FAM ID=F1, not INDI ID=I1

20-Nov-01 1
706 Page reference error.

Thanks to Eric Smith and Gustaf Jarnling for spotting this. Halfway down the page, where a page reference should be, it says "Error! Bookmark not defined" due to a production error. It should say 107.

09-May-01 1
752 OracleXML Utility is now called Oracle XML SQL Utility

Thanks to SATO Naoki for pointing out that the OracleXML utility is now called the Oracle XML SQL Utility.

22-Nov-01 1
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free