Skip to content

Instantly share code, notes, and snippets.

@rsleggett
Created April 24, 2012 07:34
Show Gist options
  • Save rsleggett/2477507 to your computer and use it in GitHub Desktop.
Save rsleggett/2477507 to your computer and use it in GitHub Desktop.
XSLT Choose When (else if)
<xsl:choose>
<xsl:when test="$someValue = 1">
<xsl:value-of select="someXpath" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="defaultXpath" />
</xsl:otherwise>
</xsl:choose>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment