<?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>1577</bug_id>
          
          <creation_ts>2005-07-14 04:09:35 +0000</creation_ts>
          <short_desc>[FS] technical: 4.1.5 Function Calls: Normalization</short_desc>
          <delta_ts>2005-09-06 12:58:53 +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>normal</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>4551</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-14 04:09:35 +0000</bug_when>
    <thetext>4.1.5 Function Calls

Normalization
&quot;Note that this normalization rule depends on the static environment
containing function signatures&quot;
    Specifically, the SequenceTypei in the rule&apos;s RHS presumably come from
    one of the function signatures in statEnv.funcType. But which one? It
    seems to me that you need to do Static Type Analysis, which
    (a) might find more than one valid signature; and
    (b) operates on instances of the Core syntax, which requires that we
        first normalize the FunctionCall, and so we have a circularity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4930</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-19 21:20:28 +0000</bug_when>
    <thetext>The way to break the circularity is that you do not really need static
typing. You can just rely on the actual signature declared for the function.

In the case of F&amp;O overloaded functions, there may be multiple signatures but
they are always for atomic types or sequences of atomic types and this results
in the same normalization whichever signature you choose.

This should probably be indicated more clearly in the document.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5603</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-08-31 15:21:26 +0000</bug_when>
    <thetext>The XML Query and XSLT WGs have accepted the comment with the fix, as suggested
below, using wording proposed in Bug #1577.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5630</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-08-31 23:27:57 +0000</bug_when>
    <thetext>What was meant was fixed using the wording in Bug 1578.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5634</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-09-01 00:27:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt;
&gt; The way to break the circularity is that you do not really need static
&gt; typing. You can just rely on the actual signature declared for the function.

Sure, *now*. The acceptance of Bug 1580 means that the original &quot;But which one?&quot;
question now goes away.

Or maybe it was never a valid question; see Bug 1578 comment #3.

&gt; In the case of F&amp;O overloaded functions, there may be multiple signatures but
&gt; they are always for atomic types or sequences of atomic types and this results
&gt; in the same normalization whichever signature you choose.

Actually, for different SequenceType &lt;: xdt:anyAtomicType*,
[]_Convert(SequenceType) *does* result in different normalizations, since the
choice of SequenceType constrains the choice of PrototypicalValue. However, that
should now be a moot point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>