This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selecting Parent Nodes with Empty Children
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 05 Apr 2002 23:34:42 +0200
- Subject: Re: [xsl] Selecting Parent Nodes with Empty Children
- References: <AFF2D32D2C84D311B3F000105A23152303D0295A@pony1.mustangeng.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hellstern, Manny wrote:
> Sorry for the poor phrasing. What I'd like to do is use an XPath expression
> in some script to extract a nodeset of ONLY those nodes that meet the
> criteria. In otherwords, can an XPath expression look something like
>
> var objNodes = objXML.selectNodes("//VALUE[normalize-space(.)='']")
>
Yes, this will get you
<VALUE>dummy text</VALUE>
<VALUE>more text</VALUE>
> -----Original Message-----
It's considered good netiquette to trim unnecessary quoted
text.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list