[xquery-talk] What does [.] do.
Ihe Onwuka
ihe.onwuka at gmail.com
Fri Feb 7 02:25:13 PST 2014
On Mon, Jan 27, 2014 at 2:45 PM, Michael Kay <mike at saxonica.com> wrote:
>
> I think the only case I've used in anger is probably count(tokenize($x, ' ')[.]) which eliminates the zero-length tokens that can arise at the start and/or end of the sequence.
>
slight variation
tokenize($url,'/')[.][last()]
that gets me the last bit of a url irrespective of whether it ends with a /
More information about the talk
mailing list