Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Syntax error when function has no type - ID: 764172
Last Update: Comment added ( mhkay )

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 ( mhkay ) - 2003-07-01 19:53

5

Closed

Fixed

Michael Kay

XQuery conformance

v7.6

Public


Comment ( 1 )

Date: 2003-07-11 09:56
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.6.5



Attached File

No Files Currently Attached

Changes ( 3 )

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