Re: [xsl] How to get page range within a group

Subject: Re: [xsl] How to get page range within a group
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 12 Sep 2008 15:56:03 +0100
>> The next time someone asks for questions for a test, that's a nice
>> (but unfair) one to suggest.
>
> nah it's too easy as its explictly highlighted in the spec:-)
>
> http://www.w3.org/TR/xpath20/#abbrev
>
> Note:
>
> The path expression //para[1] does _not_ mean the same as the path
> expression /descendant::para[1]. The latter selects the first descendant
> para element; the former selects all descendant para elements that are
> the first para children of their respective parents.

So is it correct to say that:

(//para)[1]

and

/descendant::para[1]

are equivalent?



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread