<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1542</bug_id>
          
          <creation_ts>2005-07-10 23:30:02 +0000</creation_ts>
          <short_desc>[FS] editorial: 3.1.1 Static Context</short_desc>
          <delta_ts>2007-02-25 23:13:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4497</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-10 23:30:02 +0000</bug_when>
    <thetext>3.1.1 Static Context

&quot;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].&quot;
    Section 3.3 doesn&apos;t have that rule any more.

&quot;The statEnv.xpath1.0_compatibility environment&quot;
&quot;The statEnv.default_elem_namespace environment&quot;
[etc]
    Section 2.1.4 says:
    &quot;An environment is a dictionary that maps a symbol ... to an object.&quot;
    so it&apos;s contradictory (as well as just odd) to refer to these
    non-dictionary properties as environments.

&quot;statEnv.funcType&quot;
&quot;define function QName (Type1, ..., Typen) return Type&quot;
    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 &quot;declare&quot; rather than &quot;define&quot;, and &quot;expanded-QName&quot;
    rather than &quot;QName&quot;.

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 &quot;statEnv |- Expr&quot; syntax (without &quot;: Type&quot;) is not used any
    more, that I can find.

    You might want to use a different example, since this one doesn&apos;t
    actually occur.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4499</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-11 04:56:11 +0000</bug_when>
    <thetext>(Also...)

&quot;statEnv.namespace&quot;
    How would it come about that statEnv.namespace maps a prefix to the
    null namespace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6887</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-10-24 20:19:52 +0000</bug_when>
    <thetext>Fixes as suggested. Kept the example.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11815</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-18 06:03:44 +0000</bug_when>
    <thetext>Re the example inference rule:
    You changed Expr* to Expr, but the prose still refers to
    &quot;a/the sequence of expressions&quot;

And re statEnv.namespace:
    I still don&apos;t see how statEnv.namespace could come to
    map a prefix to the null namespace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12556</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-10-19 23:33:48 +0000</bug_when>
    <thetext>Fixed the text around the example.

I&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13091</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-12-07 08:36:57 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Fixed the text around the example.

Not entirely. There&apos;s still the phrase &quot;a sequence of expressions&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13588</commentid>
    <comment_count>6</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2007-01-16 17:53:16 +0000</bug_when>
    <thetext>Fixed. Replaced &apos;a sequence of expressions&apos; by &apos;an expression&apos;.

- Jerome

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>