August 2000
Beginner
456 pages
9h 24m
English
The previous example showed you how to use multiple <xsl:if> elements in situations where there are alternatives. Although this works, it's ungainly when there are several possible values. In that case, it's better to use a combination of the <xsl:choose>, <xsl:when>, and <xsl:otherwise> elements. The following two sections illustrate how these elements are used.
Reopen listing14-4.xml and change
<Book> <Title>Teach Yourself Uses of Silicon in 24 Hours</Title> <Author> <Name>Missy Fixit</Name>
to
<Book BestSeller="impossible"> <Title>Teach Yourself Uses of Silicon in 24 Hours</Title> <Author> <Name>Missy Fixit</Name>
Add the two additional records that ...
Read now
Unlock full access