[xquery-talk] filter function

Bas de Bakker bas at x-hive.com
Fri Jun 30 13:00:29 PDT 2006

Ancient working drafts of the XQuery specification contained a filter 
function and did not require the braces around expressions in element 
constructors. There are still early XQuery articles on the web that used 
those working drafts. Presumably the query in the original question was 
based on one of those articles.

Bas de Bakker
X-Hive Corporation

Michael Kay wrote:
>> i mean this piece of code does not return paths from the file 
>> oredr.xml which satisfy my condition it returns <hh>
>> filter()
>> </hh>
> The filter() function is your own function, I assume. There is no function
> of that name in the XQuery specs or in Saxon. You can't expect us to tell
> you why it isn't working unless you show us the source code. 
> Here's a guess, though: You wrote
> <hh>filter()</hh>
> when you meant
> <hh>{filter()}</hh>
> Michael Kay
> http://www.saxonica.com/
> _______________________________________________
> talk at xquery.com
> http://xquery.com/mailman/listinfo/talk

More information about the talk mailing list