<?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 #4</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>

</xsl:stylesheet>