[Xquery] 3.3.2 Filter Expressions (editorial comment on example)

the last example of a filter expression says:

  The following example illustrates the use of a filter expression as a
  step in a path expression. It returns the element node within the
  specified document whose ID value is "tiger":

  fn:doc("zoo.xml")/fn:id('tiger')


That path expression has two steps, both of which are filter expressions 
in the strict sense as zero predicates are allowed, but it isn't really
what one would naturally call an example of a filter expression in a
step.

 fn:doc("zoo.xml")//*[@id='tiger'][1]

might be a better example (even if it's less efficient code)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

Received on Tuesday, 3 August 2004 12:42:38 UTC