Re: [xsl] XPath that returns nothing

Subject: Re: [xsl] XPath that returns nothing
From: Vasu Chakkera <vasucv@xxxxxxxxx>
Date: Wed, 28 Sep 2011 06:35:32 +0100
> Out of interest, why do you ask?

Same question.. :-)

You can do lot of things like xpath for an element that doesnt exist
in your document. if you have to write something completely generic,
you can define an arbitrary namespace in your stylesheet and do an
xpath for like myns:xxx .. The ideas are infinite i think...

On 27 September 2011 09:42, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 26 September 2011 22:17, Olivier Lefevre <lefevrol@xxxxxxxxx> wrote:
>> What is the best XPath expression that is guaranteed to return nothing?
>> (best in the sense of simplest, always works and costs as little as
>> possible to evaluate). I was hoping it'd be the empty string but that
>> seems forbidden.
> Out of interest, why do you ask?
> --
> Andrew Welch

Vasu Chakkera
NodeLogic Limited

Current Thread