[Home] [By Thread] [By Date] [Recent Entries]



  (//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
________________________________________________________________________

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member