A spurious syntax error is reported when a user-defined
function is declared with no return type, for example:
define function uf:depth($node)
{
if (node-kind($node) = 'document')
then 0
else 1 + uf:depth($node/..)
}
Reported by Juliane Harbarth.
Circumvention: declare a return type ("as xs:integer"
in this example).
Source code fixed.
Michael Kay
XQuery conformance
v7.6
Public
|
Date: 2003-07-11 09:56 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2003-07-11 09:56 | mhkay |
| resolution_id | None | 2003-07-11 09:56 | mhkay |
| close_date | - | 2003-07-11 09:56 | mhkay |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use