Skip to content

Instantly share code, notes, and snippets.

@spdustin
Created October 29, 2012 21:11
Show Gist options
  • Save spdustin/3976567 to your computer and use it in GitHub Desktop.
Save spdustin/3976567 to your computer and use it in GitHub Desktop.
XSL Snippet - If/then/else (choose/when/otherwise)
<xsl:choose>
<xsl:when test="@PercentComplete = '0 %'">
Not started
</xsl:when>
<xsl:when test="@PercentComplete = '100 %'">
Completed
</xsl:when>
<xsl:otherwise>
In process - Current status is <xsl:value-of select="@status"/>
</xsl:otherwise>
</xsl:choose>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment