This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1703 - [FS] editorial: 5.2 Module Declaration
Summary: [FS] editorial: 5.2 Module Declaration
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jerome Simeon
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 05:15 UTC by Michael Dyck
Modified: 2007-01-16 17:34 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-18 05:15:25 UTC
5.2 Module Declaration

Introduction
"We assume that the static-context processing and dynamic-context
processing described in [5 Modules and Prologs] are applied to all library
modules before the normalization, static context processing, and dynamic
context processing of the main module."
    I don't think the inference rules make that assumption. However, they
    probably should. See technical comments.

Notation

"a module's URI"
    The proper terminology appears to be "a module's target namespace".

Core Grammar
[5 (Core)] ModuleDecl ::= ...
    This production is never used. Might as well delete it.

SCP + DCP

SCP / rule 1 / premise 1
"declare namespace NCName = URILiteral ; PrologDeclList =>stat statEnv"
    Append "with PrologDeclList1".
    Prepend "statEnvDefault |-"

DCP / rule 1 / premise 1
"(declare namespace NCName = URILiteral PrologDeclList) =>dyn dynEnv"
    Delete parentheses.
    Prepend "dynEnvDefault |-"
(leftover from last year, comment #146)

SCP / rule 1 / premise 2
DCP / rule 1 / premise 1
DCP / rule 1 / premise 2
"... namespace NCName = URILiteral PrologDeclList"
    Insert semicolon between "URILiteral" and "PrologDeclList".
(leftover from last year, comment #146, #147)

SCP / rule 1 / premise 2
DCP / rule 1 / premise 2
"module namespace NCName = URILiteral ; PrologDeclList"
    This is not a judgment.
(leftover from last year, comment #147)
Comment 1 Jerome Simeon 2006-04-17 20:00:00 UTC
Fixed as suggested. Notable change is the addition of a judgment to lookup a module based on its target URI, in order to address the last comment.

- Jerome