Forum Moderators: open

Message Too Old, No Replies

Conditional display of cell data

         

Anarchist

3:13 pm on May 11, 2005 (gmt 0)

10+ Year Member



Hi,
I am trying to build an XSL script that outputs a table, the table data must be filtered, if there is no invoice entry in the invoice column then the date in the ordered column must not be shown.

How is this done, I have tried several things with no luck yet.

Here is my last effort.


<td>
<xsl:choose>
<xsl:when test="invoiced='true'">
<xsl:value-of select="ordered"/>
</xsl:when>
</xsl:choose>
</td>
<td>
<xsl:value-of select="invoiced"/>
</td>

choster

1:48 pm on May 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Anarchist, welcome to WebmasterWorld. Without knowing the structure of your XML the best solution may be hard to identify-- we don't know what data it contains and how it is to be marked up.