Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

4.4. Summary

This chapter explained how to make use of XSLT control structures. You learned the use of <xsl:if> for simple cases, and how to apply <xsl:choose>, <xsl:when>, and <xsl:otherwise> for more complex conditions. As an alternative, you learned that it is often possible to use if-then-else conditional expressions in XPath 2.0.

The chapter also illustrated ways of combining <xsl:for-each> for iterative content, together with <xsl:apply-templates>. You learned how to use <xsl:attribute-set> to apply styling and scope attribute values in tabular output, and how to process code in CDATA sections to XHTML.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint