[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

distinct-values in Where Clauses

David Carlisle davidc at nag.co.uk
Thu Jan 17 18:01:40 PST 2008


  distinct-values in Where Clauses
> "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[1] would always use the first
or
$head in $find/head[not(@type) or  @type='main']
would only select main (or unclassified) heads.

Only you can know what your requirements are.

David



________________________________________________________________________
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. 
________________________________________________________________________


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.