RE: [F&O] op:to doesn't match language specification

Sarah:
If you notice, none of the op: functions in the F&O allow the empty sequence as argument even though the corresponding operator does.  This is because the empty sequence argument to operators is handled at the language level and never makes it down to the function. 

All the best, Ashok
 

> -----Original Message-----
> From: public-qt-comments-request@w3.org 
> [mailto:public-qt-comments-request@w3.org] On Behalf Of Sarah Wilkin
> Sent: Wednesday, December 15, 2004 4:32 PM
> To: public-qt-comments@w3.org
> Subject: [F&O] op:to doesn't match language specification
> 
> 
> In the October 04 language specification op:to was changed to 
> have optionally have empty operands:
> "Each of the operands of the to operator is converted as 
> though it was an argument of a function with the expected 
> parameter type xs:integer?. 
> If either operand is an empty sequence, or if the integer 
> derived from the first operand is greater than the integer 
> derived from the second operand, the result of the range 
> expression is an empty sequence..."
> 
> Which means in F&O the signature
> op:to($firstval as xs:integer, $lastval as xs:integer) as xs:integer*
> 
> should be:
> op:to($firstval as xs:integer?, $lastval as xs:integer?) as 
> xs:integer*
> 
> --Sarah
> 
> 
> 

Received on Thursday, 16 December 2004 01:29:13 UTC