[Home] [By Thread] [By Date] [Recent Entries]
First, read some tutorials in depth. Then try using an 'if' or a 'choose/when' <TABLE BORDER="4" WIDTH="100%" VALIGN="TOP" CELLPADDING="5"> <!-- put the if at the appropriate level--I'm assuming this is where you might want it.--> <xsl:if test="header_notes"> <TR> <TD WIDTH="100%" VALIGN="TOP" COLSPAN="2"> <H4 ALIGN="LEFT">HEADER NOTES AREA</H4> <xsl:value-of select="header_notes_text" /><BR/> </TD> </TR> </xsl:if> </TABLE> At 10:54 AM 3/14/03 -0600, you wrote: Newbie here. I am looking for the proper element to evaluate the existence of a node in order to suppress the generation of an HTML display 'box' if a particular node does not exist. So, instead of producing a box with a caption of 'HEADER NOTES' when there are no header notes, I would rather not produce the box at all to cut down on the clutter. Here is the code which makes the box and displays any header_notes_text if it exists. For example,
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



