|
Subject: RE: testing for null string in a node From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 7 Nov 2000 16:34:57 -0000 |
> I want to be able to test if the value of a certain node is empty Depends what you mean by empty. Contains no child nodes: not(node()) Contains no text content: not(string(.)) Contains no text other than whitespace: not(normalize-space(.)) Contains nothing except comments: not(node()[not(self::comment())]) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: testing for null string in a no, Christof Schneider | Thread | Re: AW: Encoded question, Josef Vosyka |
| Re: xsl doubts, jim smith | Date | Top level variables and parameters, Phil Capon |
| Month |