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 1609 - two notations for function evaluation (= and =>)
Summary: two notations for function evaluation (= and =>)
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows 2000
: 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-15 00:03 UTC by Fred Zemke
Modified: 2007-01-16 17:27 UTC (History)
0 users

See Also:


Attachments

Description Fred Zemke 2005-07-15 00:03:26 UTC
2.1.4 Notations for environments
The specification uses more than one notation to indicate the
evaluation of a static environment member that is a function.
See for example 3.1.1.1 "Resolving QNames to expanded QNames"
uner "Semantics" the first inference has the following judgment 
above the line:

statEnv.namespace(NCName) = URI-or-EmptyNamespace

This means that the statEnv.namespace member is a function.
When you evaluate this function for NCName, you get 
URI-or-EmptyNamespace.  Contrast this example with section 
7.1.9 "Type Expansion" second inference, second line:

statEnv.typeDefn(expanded-QName) => define type ...

Sometimes you use = and sometimes you use => for the same 
meaning, the result of evaluating a function that is a member
of an environment.
Comment 1 Michael Dyck 2005-07-15 19:07:29 UTC
(In reply to comment #0)
>
> ... section 
> 7.1.9 "Type Expansion" second inference, second line:
> 
> statEnv.typeDefn(expanded-QName) => define type ...

You must be looking at an old draft. It was '=>' up to the 20050404 draft, but
was changed to '=' in the 20050603 draft. (And the last time 'Type expansion'
was section 7.1.9 was the 20040220 draft, the previous Last Call.)
Comment 2 Jerome Simeon 2005-07-19 16:44:21 UTC
I believe this is editorial.
- Jerome
Comment 3 Mary Fernandez 2006-04-11 22:13:25 UTC
Already fixed in earlier draft