|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] distinct-values in Where ClausesDavid Carlisle davidc at nag.co.ukThu 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[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






