CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 11:54:34 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:50:22 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 18:37:04 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c83a161d6c2ebb
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=guLao0vMv4MOt8VrTdvVTLm4JGihIHui5VDVkpiSiag-1760183674-1.0.1.1-q6nTHHF9V3GBJjoXexMUbNiKOHEE2.Urx2aEjYfKDkPNuLsb3ViMStfHukKdkt9J3JZzNZ816RZAiygH_u6KytQYlGqjFx0qZE3jfB7ROaE; path=/; expires=Sat, 11-Oct-25 12:24:34 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98ce29db9be64e3d-BLR
alt-svc: h3=":443"; ma=86400
[XPath 2.0] Return value always has declared return type? from Priscilla Walmsley on 2004-02-04 (public-qt-comments@w3.org from February 2004)
[XPath 2.0] Return value always has declared return type?
- From: Priscilla Walmsley <priscilla@walmsley.com>
- Date: Wed, 4 Feb 2004 07:43:00 -0500
- To: <public-qt-comments@w3.org>
- Message-Id: <20040204124305.C8F84880227@egp.w3.org>
In Section 3.1.5, it says: "3. The function is evaluated using the converted argument values. The result is a value of the function's declared return type." As I understand it, the return value of a function is not always the declared return type. distinct-values( (1,2,3) ) would not return 3 values of type xdt:anyAtomicType. The XQuery draft contains a paragraph of clarification that includes "the value returned by a function retains its most specific type, which may be a subtype of the declared return type of the function.". I think this paragraph should be included in XPath as well. Also, the paragraph in the XQuery draft implies that it is only for user-defined functions. I think it should apply to both built-in and user-defined functions in XQuery, right? Thanks, Priscilla Walmsley
Received on Wednesday, 4 February 2004 07:43:19 UTC