<?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>3183</bug_id>
          
          <creation_ts>2006-05-03 18:41:21 +0000</creation_ts>
          <short_desc>[FS] editorial: 4.1.5 Function Calls: []_FunctionArgument</short_desc>
          <delta_ts>2007-11-04 06:00:04 +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>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></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="Michael Dyck">jmdyck</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>9576</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-05-03 18:41:21 +0000</bug_when>
    <thetext>4.1.5 Function Calls

Notation
[]_FunctionArgument
    First, picking up on Bug 1576 comment #2, note that the conditional
    structures of []_AtomizeAtomic and []_Convert are now identical,
    so the two can be merged (into []_ConvertAtomic, say):

        [ Expr ]_ConvertAtomic(SequenceType) denotes
        fs:convert-simple-operand(fn:data(Expr),PrototypicalValue)
            If [SequenceType]_sequencetype &lt;: xdt:anyAtomicType*
        Expr
            Otherwise

    Second, note that, as seen at the end of Bug 1680 comment #4,
    []_FunctionArgument() is actually invoked with a Type, not a
    SequenceType (because when you look up the function name/arity in
    statEnv.funcType, you get a signature with Types, not SequenceTypes).
    This modifies the above definition to:

        [ Expr ]_ConvertAtomic(Type) denotes
        fs:convert-simple-operand(fn:data(Expr),PrototypicalValue)
            If Type &lt;: xdt:anyAtomicType*
        Expr
            Otherwise

    Finally, I suggest that rather than using this ad hoc If/Otherwise
    notation, the whole []_FunctionArgument() mapping would be better
    expressed as two inference rules:

        statEnv |- Type &lt;: xdt:anyAtomicType*
        -------------------------------------
        statEnv |- [ Expr ]_FunctionArgument(Type) =
            fs:convert-simple-operand(fn:data( [Expr]_Expr ),ProtoValue)

        statEnv |- not( Type &lt;: xdt:anyAtomicType* )
        --------------------------------------------
        statEnv |- [ Expr ]_FunctionArgument(Type) = [Expr]_Expr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14194</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-26 00:11:11 +0000</bug_when>
    <thetext>The fix for this bug does not appear in the Recommendation of 23 January 2007. 
It will be considered for a future publication (either an Errata document or
some possible future version of the specification). </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>