Jump to content

Richbuff

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Richbuff

  1. That worked. Simple fix.Thank you for your help.
  2. I have the following XML given to me:<Contact> <id>3283</id> <Name>John Doe</Name></Contact><Contact /><Contact /><Contact />Im using <xsl:for-each> mixed with html to display the contacts in a repeating row table. <xsl:for-each select="Contact"> <tr> <td><xsl:value-of select="id"/></td> <td><xsl:value-of select="Name"/></td> </tr> </xsl:for-each>The Results:ID: 3283 Name: John DoeID: Name:ID: Name:ID: Name:I would like the suppress the empty <Contact /> fields so an html row is not displayed. However the XSLT output does create a row for the empty <Contact /> field with empty data.ID: 3283 Name: John DoeSearched Google and was unable to find a solution. Any help would be appreciated. Thank you.
×
×
  • Create New...