xsl-list
[Top] [All Lists]

Re: test if null

2005-06-27 02:47:23
Tempore 11:41:07, die 06/27/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:


  <xsl:if test="string-length(EMPTYNODE/text()) = 0">
  </xsl:if>

The string length of a text node is never zero so that test will never
be true.

In case of absence of any text node, wouldn't the expression yield true? I thought the string-length of an empty node-set would be 0.

--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
"Φιλήκοον ειναι μαλλον η φιλόλαλον"  - Κλεόβουλος

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>