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 1742 - [FS] technical: 5.15 Function Declaration: adding FunctionDecl to statEnv
Summary: [FS] technical: 5.15 Function Declaration: adding FunctionDecl to statEnv
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 normal
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 23:48 UTC by Michael Dyck
Modified: 2005-09-06 13:14 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-18 23:48:37 UTC
5.15 Function Declaration

SCP / rule 1 / premise 2
"statEnv1 = statEnv + funcType(expanded-QName => FunctionDecl)"
    statEnv.funcType maps an expanded-QName to a *set* of function
    *signatures*, not a single FunctionDecl. So you'll need premises like:

        statEnv |- [[ SequenceType1 ]]_sequencetype = Type1
        ...
        statEnv |- [[ SequenceTypen ]]_sequencetype = Typen
        statEnv |- [[ SequenceTyper ]]_sequencetype = Typer
        Sig = define function QName( Type1, ..., Typen ) return Typer
        statEnv.funcType(expanded-QName) = {Sig1, ..., Sigk}
        statEnv1 = statEnv + funcType(expanded-QName => {Sig1, ..., Sigk, Sig})

    (Note that you can drop the set-related stuff if you change funcType
    to map to a single signature. See Bug 1580.)
Comment 1 Jerome Simeon 2005-07-27 15:24:04 UTC
The proposed resolution to Bug 1580 in:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1580
addresses this problem.
Comment 2 Jerome Simeon 2005-08-31 15:30:07 UTC
The XML Query and XSLT WGs have accepted this comment, with the fix proposed in
#Bug 1580.
- Jerome