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

Function and Query Evaluation with No XML Tags Error

Kevin Grover kevin at kevingrover.net
Thu Feb 28 18:22:27 PST 2008


  Function and Query Evaluation with No XML Tags Error
On Thu, Feb 28, 2008 at 9:00 AM, David Carlisle <http://x-query.com/mailman/listinfo/talk> wrote:
>
>   for $r in $seq[not(string(.)=string((child::*)[1]))]
>    return $r
>
>  Means exactly the same thing as
>
>
>  $seq[not(string(.)=string((child::*)[1]))]
>
>
>  (for $r in ... return $r  is always the same as ...)
>

That was my bad.  It was from an example I posted,  except 'child::'
was 'preceding-sibling::' in my function.

It's in that form because the previous version had a string() around
$r to show how you could write your own function that emulated the
results of the distinct-values() function.

It did not occur to me at the time to simplify the expression, but it
makes sense when you pointed it out.

Thanks.


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-2007 All Rights Reserved.