CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 15:35:26 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:50:21 GMT
cache-control: max-age=2592000, public
expires: Mon, 10 Nov 2025 15:35:25 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98cf6d5dbb06a403
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: EXPIRED
set-cookie: __cf_bm=jF4ZisVK6lwqCq5jn52U3cxvP1lIWLHvTcVvA_1C1QY-1760196926-1.0.1.1-cZ.J0gC2hkSnumz5R4xT9x3WiI26y0BTDY9eTk4dDIW2JTzrdE4z4pDjbj1JLXyrQoSH81LbsKqfnNQ_vghjMAhhQ0lRRJxceQ3vCnKejto; path=/; expires=Sat, 11-Oct-25 16:05:26 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98cf6d5dbb06a403-BLR
alt-svc: h3=":443"; ma=86400
multiple modules with same namespace from Per Bothner on 2003-12-31 (public-qt-comments@w3.org from December 2003)
multiple modules with same namespace
- From: Per Bothner <per@bothner.com>
- Date: Wed, 31 Dec 2003 14:49:47 -0800
- To: public-qt-comments@w3.org
- Message-ID: <3FF3528B.60507@bothner.com>
I asked this before, but even the latest drafts don't seem to have a clear answer for whether there can be multiple library modules with the same namespace. Assume mod1.xql: module namespace m = "M"; declare function m:f() { 1 } and mod2.xql: module namespace m = "M"; declare function m:g() { 2 } Is the following main module allowed? import module namespace m1 = "M" at "mod1.xql"; import module namespace m2 = "M" at "mod2.xql"; m1:f()+m2:g() How about this? import module namespace m = "M"; m:f()+m:g() The statement in 4.7 that "The module import identifies the module to be imported by its target namespace" implies neither are allowed because in this case you cannot identify the module by its target namespace. But phrasing is sufficiently imprecise that I can't be sure what's intended. It would be nice to clarify this, either: A. The target namespace must match a single library module; it is a static error if multiple modules have the same namespace. or: B. If multiple modules match the target namespace, then they are all imported. My assumption (and strong recommendation) is that A is intended. -- --Per Bothner per@bothner.com https://per.bothner.com/
Received on Wednesday, 31 December 2003 17:49:41 UTC