Re: stripping parens
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <php...@pe...> - 2003-06-21 08:39:23
|
On Saturday 21 Jun 2003 08:33, Peter James wrote: > and I do a //img. This will give me all img elements in the doc. > If I do //img[1] I still get the first element in all paths. If I > do (//img)[1], I get all img elements, where I should just get the > first element in the document. see note at http://www.w3.org/TR/xpath#path-abbrev "NOTE: The location path //para[1] does not mean the same as the location path /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 parents." |