[Bug 1720] [FS] what is the "operand" of fs:convert-operand? what is the type of $actual?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1720


simeon@us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From simeon@us.ibm.com  2005-07-21 19:18 -------
That's a good catch. Yes the operand intended in the 3rd bullet is $actual.

The intended signature is to take an optional atomic value (it is always applied
in a context of an operator which expects an optional atomic value, like
arithmetic operations, or value comparisons, or bounded by existential
quantification). The 

I believe we should make the following two fixes:

 * We should change the 3rd bullet to:

    3. Otherwise, $actual is returned unchanged.

 * We should change the signature to:

fs:convert-operand($actual as xdt:anyAtomicType?, $expected as
xdt:anyAtomicType) as xdt:anyAtomicType ?

- Jerome

Received on Thursday, 21 July 2005 19:18:51 UTC