xsl-list
[Top] [All Lists]

Re: [xsl] XPath that returns nothing

2011-09-28 00:35:46
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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
On 26 September 2011 22:17, Olivier Lefevre <lefevrol(_at_)yahoo(_dot_)com> 
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
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





-- 
Vasu Chakkera
NodeLogic Limited
Oxford
www.node-logic.com
==============

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--