CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 01:54:25 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:36:07 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 05:59:04 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c3e3becb8e5751
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=dGFIgMjuNUC8D8oyI6pWrsaENrU7t8vzpYM3ZkPd3ws-1760147665-1.0.1.1-ym6r0WAywBm.DgaDUxOgZZLXl3OQuytoodM6Fcwsnh_D8dwKoNvjMc4k4SB0G7Pi1gLMcAfCEAfho4RSv_6TgNgoAgomJ5GJdTJO_cNtogo; path=/; expires=Sat, 11-Oct-25 02:24:25 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98cabab8db85c151-BLR
alt-svc: h3=":443"; ma=86400
Variable references and import precedence from Kay Michael on 1999-12-10 (xsl-editors@w3.org from October to December 1999)
Variable references and import precedence
- From: Kay Michael <Michael.Kay@icl.com>
- Date: Fri, 10 Dec 1999 10:10:17 -0000
- To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
- Message-ID: <93CB64052F94D211BC5D0010A800133101FDE87A@wwmess3.bra01.icl.co.uk>
Given a variable reference, there is a need to identify the relevant variable-binding element. I think it's pretty obvious what the spec intends here, but I don't think the rules are explicitly spelled out. - it doesn't explicitly say that when a local variable shadows a global variable with the same name, the local variable will be the one that is used - it doesn't explicitly say that where there are several global variables with different import precedence, the one with highest precedence is chosen. Unless I've missed something, of course. Just really intended as a note for the next edition. Incidentally, I think the way in which each top-level element is treated differently as regards import precedence is very confusing to users. There seems little logic as to the cases where duplication is an error that must be reported, the cases where it is an error that the implementor is allowed to recover from (every such choice given to the implementor creates a portability problem for users), and the cases where it is not an error at all. A useful feature in version 2 would be to put the decision between strict and lenient error handling in the hands of the user rather than the implementor. Mike Kay
Received on Friday, 10 December 1999 05:10:53 UTC