This chapter is all about making choices, sorting, and handling the data in XML documents in various ways. Here, youll see the <xsl:if> , <xsl:choose> , <xsl:when> , <xsl: otherwise > , <xsl:for-each> , and <xsl: sort > elements. You can use these elements to handle your data, making choices on how transformations should proceed depending on the value of that data.
Youll also see how to number elements in documents in this chapter, what to do if your XSLT processor doesnt support a particular extension, and more. I begin with the most frequently used of the elements youll see in this chapter <xsl:if> .