title: Test if Value is Empty in XML with XSL stylesheet
body: <p>I'm using an XSLTprocessor script to get data from an external source.
  Now I would like to test wether a certain value is empty and then return a empty field.
  this is the code I'm using now in my XSL stylesheet.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:output method="html"/&gt;
  
  &lt;xsl:template match="/"&gt;
  
    &lt;table border="1" style="width:600px;margin-top:20px"&gt;
      &lt;tr&gt;
        &lt;th align="left" style="text-transform: uppercase; font-size: 14px; color: white;font-weight: normal;"&gt;Date&lt;/th&gt;
        &lt;th align="left" style="text-transform: uppercase; font-size: 14px; color: white;font-weight: normal;"&gt;Location&lt;/th&gt;
        &lt;th align="right" style="text-transform: uppercase; font-size: 14px; color: white;font-weight: normal;"&gt;City&lt;/th&gt;
        &lt;th align="right" style="text-transform: uppercase; font-size: 14px; color: white;font-weight: normal;"&gt;Country&lt;/th&gt;
        &lt;th align="right" style="text-transform: uppercase; font-size: 14px; color: white;font-weight: normal;"&gt;Facebook&lt;/th&gt;
      &lt;/tr&gt;
      &lt;xsl:for-each select="//item"&gt;
      &lt;tr&gt;
        &lt;td style="text-align:left;"&gt;&lt;xsl:value-of select="date" /&gt;&lt;/td&gt;
        &lt;td style="text-align:left;color:#ccc;"&gt;&lt;xsl:value-of select="location" /&gt;&lt;/td&gt;
        &lt;td style="text-align:right;"&gt;&lt;xsl:value-of select="city "/&gt;&lt;/td&gt;
        &lt;td style="text-align:right;"&gt;&lt;xsl:value-of select="country" /&gt;&lt;/td&gt;
        &lt;td style="text-align:right;"&gt;&lt;a&gt;
  &lt;xsl:attribute name="href"&gt;
  &lt;xsl:value-of select="website" /&gt;
  &lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="target"&gt;new&lt;/xsl:attribute&gt;
  I'm Attending
  &lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/xsl:for-each&gt;
    &lt;/table&gt;
  &lt;/xsl:template&gt; 
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I would like to have a conditional statement on the "website" value which returns a link to a Facebook event link.  But when nothing is filled in the system where the data comes from, it should not display the link (I'm Attending)</p>
  
  <p>How can this be preformed with a XSL test or some kind of conditional statement? </p>