W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2004

XQuery last call comment XSCH-QL-014: Typeswitch

From: Don Chamberlin <chamberl@almaden.ibm.com>
Date: Wed, 29 Sep 2004 20:44:23 -0400
To: David Ezell <David_E3@VERIFONE.com>
Cc: public-qt-comments@w3.org
Message-ID: <OF638C02B5.B1AB6255-ON88256F1F.0002DEE8-88256F1F.0003FD90@us.ibm.com>
David,
The Query working group has considered your comment, attached below, and 
accepted your proposal. The revised paragraph in the description of the 
typeswitch expression reads as follows:

"In a case or default clause, if the value to be returned depends on the 
value of the operand expression, the clause must specify a variable name. 
Within the return expression of the case or default clause, this variable 
name is bound to the value of the operand expression. Inside a case 
clause, the static type of the variable is the SequenceType named in the 
case clause. Inside a default clause, the static type of the variable is 
the same as the static type of the operand expression. If the value to be 
returned by a case or default clause does not depend on the value of the 
operand expression, the clause need not specify a variable."

Thank you for this helpful comment. Please let us know whether the Schema 
Working Group considers this to be an adequate response.

Regards,
--Don Chamberlin, for the Query Working Group
Received on Thursday, 30 September 2004 00:44:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:59 UTC