Re: How can I not include empty elements?

In reply to David A's comments, he has made a slight mistake in his reply when he says the text() function returns nodes that have text. This function will actually return to text node. You would probably want to do something like this:

<xsl:for-each select="//artits/artist">
 <xsl:if test="text()">
  <td><xsl:value-of select="node()" /></td>
 </xsl:if>
</xsl:for-each>
 
           .-.                    
                .-'``(|||)                                     Լեւոն Մկրտչյան
      ,`     `-`.                http://altjira.co.uk/
     /    '``-.   ` 
   .-.  ,       `___: 
  (:::) :        ___ 
   `-`  `       ,   : 
        / ,..-`   , 
      `./ /    .-.` 
         `-..-(   ) 
               `-` 

Received on Monday, 19 May 2008 02:25:50 UTC