[xquery-talk] distinct-values in Where Clauses
davidc at nag.co.uk
Thu Jan 17 18:01:40 PST 2008
> "where" clause to eliminate the output of such, right?
> Or, is there another method?
you probably don't want another where clause (The where clause that you
have also needs to change as calling distinct-values on a sequence of
length 1 will never do anything very useful.
If the problem you are having is that
$head in $find/head,
is returning multiple head elements, then change it so that it only
selects 1, for example
$head in $find/head would always use the first
$head in $find/head[not(@type) or @type='main']
would only select main (or unclassified) heads.
Only you can know what your requirements are.
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
More information about the talk