Variables and Conditionals

Syd Bauman and David J. Birnbaum

2013-11-21

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 slide 00 of 6
© 2012 Syd Bauman, David J. Birnbaum, and the Women Writers Project This TEI-encoded XML file is available under the terms of the Creative Commons Attribution-ShareAlike 3.0 (Unported) license.