<?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>1547</bug_id>
          
          <creation_ts>2005-07-11 07:11:38 +0000</creation_ts>
          <short_desc>[FS] editorial: 3.2.1 Processing model</short_desc>
          <delta_ts>2007-01-16 17:21:21 +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>4503</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-11 07:11:38 +0000</bug_when>
    <thetext>3.2.1 Processing model

&quot;Static analysis is further divided into four sub-phases. Each phase
consumes the result of the previous phase and generates output for
the next phase. ...
Static analysis consists of the following sub-phases
1. Parsing
2. Static Context Processing
3. Normalization
4. Static type analysis&quot;
    In fact, as section 5 tells us, some Normalization ([]_PrologDecl)
    happens as part of SCP, and some ([]_sequencetype) as part of STA.
    Moreover, some STA happens as part of SCP (5.14, 5.15).  So
    &quot;sub-phases&quot; 2, 3, and 4 are not as assembly-line as you indicate.
(leftover from last year, comment #029)

&quot;Normalization works by bottom-up application of normalization rules over
expressions, starting with normalization of literal expressions and
variables.&quot;
    I disagree that it&apos;s necessarily bottom-up. You could equally say that
    it starts at the top with an invocation like [[ QueryBody ]]_Expr or
    [[ PrologDecl ]]_PrologDecl, which then proceeds by invoking
    successively lower-level rules.

&quot;The formal description of evaluation works by bottom-up application of
evaluation rules over expressions, starting with evaluation of literals
and variables.&quot;
    How can you possibly evaluate a variable reference if you haven&apos;t yet
    evaluated its declaration, which is higher up in the tree?

    You say &quot;Note that in practice some implementations may prefer
    top-down evaluation strategies.&quot; But if it&apos;s a matter of preference,
    how can you say it&apos;s one or the other?

&quot;32 bits integers&quot;
    s/bits/bit/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4505</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-11 19:15:35 +0000</bug_when>
    <thetext>[Re the (non-)pipelining of SCP, Normalization, and STA...]
    Furthermore, STA is required for some Normalization (4.1.5), so it&apos;s
    even more muddled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8357</commentid>
    <comment_count>2</comment_count>
    <who name="Mary Fernandez">mff</who>
    <bug_when>2006-02-21 18:53:09 +0000</bug_when>
    <thetext>In 3.2.1, changed text to:

&quot;Static analysis is further divided into four sub-phases.   
Typically, each phase consumes the result of
the previous phase and generates output for the next phase. When
processing query prologs, these phases may be mutually dependent
(See &lt;specref reg=&quot;id-query-prolog&quot;/&gt;).&quot;

&quot;Normalization works by recursive application of the
normalization rules over a given expression.&quot;

&quot;The formal description of evaluation works by recursive application of
the evaluation rules over a given expression.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12184</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-29 05:27:42 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; 
&gt; &quot;The formal description of evaluation works by recursive application of
&gt; the evaluation rules over a given expression.&quot;

Now that you&apos;ve removed the reference to &quot;bottom-up application of evaluation rules&quot;, it doesn&apos;t make any sense to keep the sentence &quot;(Note that in practice some implementations may prefer top-down evaluation strategies.)&quot;. Just delete it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12557</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-10-19 23:38:09 +0000</bug_when>
    <thetext>Done.
- Jerome
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>