Guest User

Untitled

a guest
May 24th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <xsl:if test="some Boolean condition">
  2. <!-- "if" stuff (there is no "else" here) -->
  3. </xsl:if>
  4.  
  5. <xsl:choose>
  6. <xsl:when test="some Boolean condition">
  7. <!-- "if" stuff -->
  8. </xsl:when>
  9. <xsl:otherwise>
  10. <!-- "else" stuff -->
  11. </xsl:otherwise>
  12. </xsl:choose>
  13.  
  14. <xsl:choose>
  15. <xsl:when test="condition one or condition two">
  16. <!-- action -->
  17. </xsl:when>
  18. <xsl:otherwise>
  19. <!-- alternative action -->
  20. </xsl:otherwise>
  21. </xsl:choose>
  22.  
  23. <xsl:if test="expression">
  24. ...some output if the expression is true...
  25. </xsl:if>
  26.  
  27. <xsl:choose>
  28. <xsl:when test="[conditionOne] or [conditionTwo]">
  29. <!-- do [action] -->
  30. </xsl:when>
  31. <xsl:otherwise>
  32. <!-- do [alternative action] -->
  33. </xsl:otherwise>
  34. </xsl:choose>
Add Comment
Please, Sign In to add comment