This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
3.1.1 Static Context "If analysis of an expression relies on some component of the static context that has not been assigned a value, a static error is raised. This constraint is formalized in [3.3 Error Handling]." Section 3.3 doesn't have that rule any more. "The statEnv.xpath1.0_compatibility environment" "The statEnv.default_elem_namespace environment" [etc] Section 2.1.4 says: "An environment is a dictionary that maps a symbol ... to an object." so it's contradictory (as well as just odd) to refer to these non-dictionary properties as environments. "statEnv.funcType" "define function QName (Type1, ..., Typen) return Type" You need a non-terminal/pattern for this construct. The rules in section 4.1.5 use FunctionDecl, which is something else. Also, they say "declare" rather than "define", and "expanded-QName" rather than "QName". inference rule Expr* is incorrect. Expr* does not occur anywhere. Note that a QueryBody is just an Expr. And there should presumably be a semicolon between URI and Expr. And the "statEnv |- Expr" syntax (without ": Type") is not used any more, that I can find. You might want to use a different example, since this one doesn't actually occur.
(Also...) "statEnv.namespace" How would it come about that statEnv.namespace maps a prefix to the null namespace?
Fixes as suggested. Kept the example. - Jerome
Re the example inference rule: You changed Expr* to Expr, but the prose still refers to "a/the sequence of expressions" And re statEnv.namespace: I still don't see how statEnv.namespace could come to map a prefix to the null namespace.
Fixed the text around the example. I'm not completely sure about the NULL namespace for that part of the context, but would rather not make a change at this point unless of a specific bug. - Jerome
(In reply to comment #4) > Fixed the text around the example. Not entirely. There's still the phrase "a sequence of expressions".
Fixed. Replaced 'a sequence of expressions' by 'an expression'. - Jerome