[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Selecting Parent Nodes with Empty Children

Subject: RE: Selecting Parent Nodes with Empty Children
From: "Hellstern, Manny" <manny.hellstern@xxxxxxxxxxxxxx>
Date: Mon, 8 Apr 2002 08:01:11 -0500
selectnodes parent
I tried the syntax in my jscript code but it generated an error.  It looks
like it doesn't like the "-" in normalize-space.  The expression
"//VALUE[normalize-space(.)='']" works when I check it using an XPATH
tester.  Is there some type of character escaping that I may need to do to
use the expression in var
objNodes=objXML.selectNodes("//VALUE[normalize-space(.)='']")?

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
Sent: Friday, April 05, 2002 3:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Selecting Parent Nodes with Empty Children


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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.