testing for null string in a node

Subject: testing for null string in a node
From: mxmodi@xxxxxxxxxxxxxxx
Date: Mon, 6 Nov 2000 12:43:10 -0600

I want to be able to test if the value of a certain node is empty and
depending on the result, perform more functions. I am having some troublwe
understanding how to test for that. Any help is appreciated.

Here is the sample XML:

     <Name>proj a</Name>
           ........More <Project> Nodes
       .....more <Date> Nodes
    ...........more <Name> Nodes

Here is the sample XSL:

<xsl:template match="/">
...perform some code...
<xsl:apply-templates select="//Names/Name" >
<xsl:sort select="FN" />

<xsl: template match="Name">
<xsl:when test="*[not(child::FN)]">
...do something...
...do something else...

...continue doing rest of the stuff..

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

Current Thread