I'm only new to xml and haven't found any very good sites with help on it, and I have the following xsl code:

VB Code:
  1. <?xml version="1.0" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="xml" encoding="iso-8859-1" omit-xml-declaration="yes" indent="yes"/>
  4. <xsl:template match="*">
  5. <table border="1" width="600" align="center">
  6.     <xsl:for-each select="//*[local-name()='item']">
  7.         <tr>
  8.             <td>
  9.                 <xsl:value-of select="*[local-name()='title']" disable-output-escaping="yes"/>
  10.             </td>
  11.         </tr>
  12.     </xsl:for-each>
  13. </table>
  14. </xsl:template>
  15. <xsl:template match="/">
  16. <xsl:apply-templates/>
  17. </xsl:template>
  18. </xsl:stylesheet>

which all works fine. What I want to do though is to just get the first item from the list. How do I do this?


Thanks.