<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- The main template. Processing starts here -->
<xsl:template match="/">
<html>
<h1>hello world #5</h1>

<table border='1'>

  <xsl:apply-templates/>

</table>

</html>
</xsl:template>

<!-- This template applies formatting to the "item" elements.
     All "item" elements get this formatting applied, because
     "apply-templates" is called from the root template above. -->
<xsl:template match="item">

    <tr>
    <td>       
    <xsl:choose>
    <xsl:when test="normalize-space(.)">
      <xsl:value-of select="."/>
    </xsl:when>    
    <xsl:otherwise>
      <b>!EMPTY!</b>
    </xsl:otherwise>
    </xsl:choose>
    </td>
    </tr>

</xsl:template>
<!-- We don't want the msg item to print out, so we have to 
     make an empty template for it. The text of all elements 
     for which there is no template gets passed to the output
     document. 
-->
<xsl:template match="msg">
</xsl:template>
</xsl:stylesheet>