XSL Conditionals: Task

This is one possible solution:


  
    
    
     
    ]]><!-- insert correct word based on <location>: -->
              <xsl:choose> <xsl:when test="count( location/geo ) eq 1">(point)</xsl:when>
              <xsl:when test="location[ @type eq 'path' ]">(path)</xsl:when>
              <xsl:otherwise>(polygon)</xsl:otherwise> </xsl:choose>
    

  
]]>
XSL Conditionals, slide 6 of 6