Sams Teach Yourself XSLT in 21 Days
Michiel van Otegem
0672323184
Page 78 (Day 3), Table
3.1 (top): "Self" should be "self"
Page 187 (Day 7),
Listing 7.23, the listing generates an error and should read
1: <xsl:template match="code">
2: <script
language="{@language}">
3: <xsl:text
disable-output-escaping="yes">
<!--
</xsl:text>
4:
<xsl:value-of select="."
disable-output-escaping="yes" />
5: <xsl:text
disable-output-escaping="yes">
--></xsl:text>
6: </script>
7: </xsl:template>
Page 289 (Day 11),
code under second section:
<xsl:decimal-format
name=”pound” digit=”#” />
should read
<xsl:decimal-format
name=”pound” digit=”@” />
Page 445 (Day18),
Listing 18.1, the listing generates an error and should read
1: <xsl:attribute
name="bgcolor">
2:
<xsl:choose>
3: <xsl:when
test="position() mod 3 = 0">
4:
<xsl:text>#cc0000</xsl:text>
5:
</xsl:when>
6: <xsl:when
test="position() mod 3 = 1">
7:
<xsl:text>#00cc00</xsl:text>
8:
</xsl:when>
9:
<xsl:otherwise>
10:
<xsl:text>#0000cc</xsl:text>
11:
</xsl:otherwise>
12:
</xsl:choose>
13: </xsl:attribute>
Page 446 (Day 18),
Table 18.2, first row: “ceiling(-2.1) = 2” should read “ceiling(-2.1) = -2”