CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 16:12:26 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:50:20 GMT
cache-control: max-age=2592000, public
expires: Mon, 10 Nov 2025 16:12:26 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98cfa3966f263e92
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: MISS
set-cookie: __cf_bm=pnuuezxQacjnhRblhrdcss.LrhAPoFLHVZ6ZuthIseE-1760199146-1.0.1.1-_WiJTmSHC2OB7Md_IFnu8xdEy4Bq6nsKzIGa0zvBFGQH84HcNcpXKYsCB4L1meMvRxVWPo3N3aj75GfGLfASjoDpklEgJF4wyARhhY42pKY; path=/; expires=Sat, 11-Oct-25 16:42:26 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98cfa3966f263e92-BLR
alt-svc: h3=":443"; ma=86400
[XQuery] What dynamic error does treat expression raise? from Priscilla Walmsley on 2003-11-21 (public-qt-comments@w3.org from November 2003)
[XQuery] What dynamic error does treat expression raise?
- From: Priscilla Walmsley <priscilla@walmsley.com>
- Date: Fri, 21 Nov 2003 10:21:05 -0500
- To: <public-qt-comments@w3.org>
- Message-Id: <20031121152115.7C8A213B66@dr-nick.w3.org>
The description of the treat expression in the XQuery language draft says: "During expression evaluation: If expr1 matches type1, using the SequenceType Matching rules in 2.4 Types, the treat expression returns the value of expr1; otherwise, it raises a dynamic error.[err:XP0006] " Then later it says: "The static type of $myaddress may be element(*, Address), a less specific type than element(*, USAddress). However, at run-time, the value of $myaddress must match the type element(*, USAddress) using SequenceType Matching rules; otherwise a dynamic error is raised.[err:XP0050]" These seem like the same situation with 2 different error messages (XP0006 and XP0050). Does the draft contradict itself, or am I misreading? Thanks, Priscilla
Received on Friday, 21 November 2003 10:21:16 UTC