hi

im trying some Xquery from 
http://www.w3schools.com/XQuery/xquery_functions.asp

declare function local:minPrice(
  $price as xs:decimal?,
  $discount as xs:decimal?)
  AS xs:decimal?
{
let $disc := ($price * $discount) div 100
return ($price - $disc)
};


and i get
*Warning*: SEDNA Message: ERROR XPST0003 It is a static error if an 
expression is not a valid instance of the grammar defined in A.1 EBNF.


even if i try something  more simple like :

declare function local:doubler($x) { $x * 2 } ;

or

declare function local:doubler($x as xs:integer) AS xs:integer { $x * 2 } ;

what did i missed ?

PJ



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to