Re: [xsl] XPath / NOT NULL

Subject: Re: [xsl] XPath / NOT NULL
From: S. Isaac Dealey <info@xxxxxxxxxx>
Date: Fri, 17 Feb 2006 16:51:45 -0500
> Hi,

> I am trying to get all Strings within an xml where String
> != NULL.

> for example this XPath:

> //office:body/office:text/text:p

> Now, I would like to receive all text:p elements, which
> are not NULL.

> How can I do this?

> Thanks,
> Dariusz

I would think ...

//text:p[text()!='NULL']

or if you wanted it to be case insensitive:

//text:p[translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmn
opqrstuvwxyz')!='null']

hth

s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm

Current Thread