<?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</h1>

<table border='1'>
<xsl:for-each select="/items/item">

  <!-- Don't print the cell if the item is empty 
       "normalize-space" is a function that removes
       leading and trailing whitespace 
       If the item is empty, print "!EMPTY!"-->

    <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:for-each>
</table>

</html>
</xsl:template>

</xsl:stylesheet>