The Open Source Swiss Army Knife

/xml/
/xml/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /xml 
Permalink: choose.htm
Title: add
article options : please login   |  print view

<xsl:choose>

  • xsl:choose is necessary when you need an "otherwise"
  • "otherwise" is like "else"
  • Only one option is chosen, or else "otherwise"
    <xsl:choose>
            <xsl:when test="ancestor(unorderedlist)">
                    *
            </xsl:when>
            <xsl:when test="ancestor(unorderedlist/unorderedlist)">
                    +
            </xsl:when>
            <xsl:otherwise>
                    -
            </xsl:otherwise>
    </xsl:choose>

    Leave a Reply
    Your Name:     anonymous
    Your Email:
    Website:  
    Comments:

    The author will be notified of your reply.
    return to top