Variables and Conditionals

Syd Bauman and David J. Birnbaum


This tutorial, continuing the set of tutorials focused on XSLT, covers how to set up conditional statements for your transformations. This tutorial, through examples, explains the two conditional branching structures available in XSL: “if” and “choose.” For an additional branching structure using XPath, see: XPath if-then-else

  1. XSL variables
  2. Conditionality and contingency
  3. ifs, chooses, whens, and otherwises
  4. Using xsl:if
  5. Using xsl:choose
  6. More than one way …
Variables and Conditionals