<?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 -->
  <xsl:if test="normalize-space(.)">
    <tr>
    <td>
    <xsl:value-of select="."/>
    </td>
    </tr>
  </xsl:if>

</xsl:for-each>
</table>

</html>
</xsl:template>

</xsl:stylesheet>