O'Reilly logo

XML Pocket Consultant by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Branching and Control Functions

As with any sophisticated programming language, the XSL Transformations (XSLT) language defines structures that you can use to add branching and control logic to stylesheets. You use branching and control functions to conditionally process nodes based on the value of an expression. XSLT implements most of the classic branching and control functions, including

  • if-then Specifies what processing should occur if a value matches an expression. In XSLT, if-then structures are implemented using the xsl:if element.

  • if-then-else Specifies what processing should occur when a value matches an expression and when a value doesn’t match an expression. In XSLT, if-then-else structures are implemented using the xsl:choose ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required