Created
April 24, 2012 07:34
-
-
Save rsleggett/2477507 to your computer and use it in GitHub Desktop.
XSLT Choose When (else if)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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