Re: position() problem with // axis + parent numbering problem

Subject: Re: position() problem with // axis + parent numbering problem
From: Matt Sergeant <matt@xxxxxxxxxxxx>
Date: Wed, 19 Apr 2000 10:13:02 +0100 (BST)
On Wed, 19 Apr 2000, Warren Hedley wrote:

> David Carlisle wrote:
> >
> > what were you expecting? It looks OK to me.
> > Perhaps you wanted the (//text)[1] form which only returns one node
> > (see the second half of my example in first reply).
> 
> Thanks David and Mike. (//text)[1] was exactly what I was after -
> I didn't realise you could do that. And thank you both for the
> explanations.

Wouldn't /descendant::text[1] be faster with most parsers? (or am I
mistaken in that would produce different results?)

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread