Re: [xsl] XPath / NOT NULL

Subject: Re: [xsl] XPath / NOT NULL
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Sun, 19 Feb 2006 15:25:12 +0000
If thaz what you were looking,then your question should have been
text:p that doesnt have a value called 'null'
as-in
you don want
<text:p>null</text:p>

what you had asked for kind of suggests that you dont want nodes of type.
<text:p/> or <text:p></text:p> in other words you only want text:p nodes with some valid string value.



Vasu



From: Dariusz Borowski <d.borowski@xxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] XPath / NOT NULL
Date: Fri, 17 Feb 2006 23:03:12 +0100

Great!!!

That's what i was looking for! ;) - Thanks!

Have a good Weekend!

Dariusz





xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 17.02.06 22:52:09:
>
> > 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
>


______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


_________________________________________________________________
Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk


Current Thread