Re: [xml-dev] Is "(//c)[a]" valid in Xpath 1.0?

From
David Carlisle <>
To
Date
2004-11-12T11:51:14Z
ID
<>
Thread
Re: [xml-dev] Is "(//c)[a]" valid in Xpath 1.0?
(//c)[1]

  It works fine (at least in libxml).

  Am I missed something? Are such
  expressions valid in XPath 1.0?

yes, yes.

production [15] says a parenthesized expression is a PrimaryExpr
production  [20] says a FilterExpr is a PrimaryExpr
optionally followed by a Predicate (which is an Expression surrounded by
[] by production [8]

and production [19] says a FilterEXpr is a PathExpr

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________