CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 19:08:07 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 19:08:07 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98d0a4ed3b3e4e3d
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=ozJAWl0pbGF84uYa2U48h0qZgv56FZd3IreWhyY5Yj8-1760209687-1.0.1.1-kFaL5JLynOvwCoHZ0lOtrUOjeFYShaH34ldQgC2teHH1wJUCuW08KrWeHQqab2uoRuFeZrEXoKy7sQy.c_mYY3NYekJqyuVit1kqmIolpIM; path=/; expires=Sat, 11-Oct-25 19:38:07 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98d0a4ed3b3e4e3d-BLR
alt-svc: h3=":443"; ma=86400
belated namespace declaration attributes from Per Bothner on 2003-11-27 (public-qt-comments@w3.org from November 2003)
belated namespace declaration attributes
- From: Per Bothner <per@bothner.com>
- Date: Wed, 26 Nov 2003 20:13:04 -0800
- To: public-qt-comments@w3.org
- Message-ID: <3FC579D0.50608@bothner.com>
Consider the following query: declare namespace n = "N"; declare namespace m = "M"; declare variable $n:x {"nx"}; declare variable $m:x {"mx"}; declare variable $e {<e n:a="{$n:x}" xmlns:n="M"/>}; declare variable $f {<f a="{$e/@a}" xmlns="M"/>}; <result> e: {$e} f: {$f} </result> The output I expect is: <result> e: <e xmlns:n="M" n:a="mx"/> f: <f xmlns="M" a="mx"/> </result> Saxon 7.8 emits: <result> e: <e xmlns:n="M" n:a="nx"/> f: <f xmlns="M" a=""/> </result> Kawa doesn't handle namespace declaration attributes, but it's next on my list of projects to tackle. This is tricky to implement (and for humans to read), because the namespace declaration attribute follows an enclosed expression that makes use of it. This means that namespace resolution cannot be done during the first parsing pass. XQuery could avoid this complexity, by requiring that namespace declaration attributes come before regular attributes - or at least before any enclosed expressions. -- --Per Bothner per@bothner.com https://per.bothner.com/
Received on Wednesday, 26 November 2003 23:13:00 UTC