xsl-list
[Top] [All Lists]

RE: Noob: Wrap cell content and some validation??

2003-09-16 11:44:50
[ Barry van Weldam]

how do i create some validation, like if xml-node = "null" show
nothing and xml-node  ="null show the value

It depends on what the context is.  If the processor is currently
considering an "xml-node" element, then this will do the job -

<xsl:if test='not(. = "null")'><xsl:value-of select='.'/></xsl:if>

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list