<?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>1576</bug_id>
          
          <creation_ts>2005-07-14 04:05:32 +0000</creation_ts>
          <short_desc>[FS] technical: 4.1.5 Function Calls: AtomizeAtomic</short_desc>
          <delta_ts>2005-09-06 12:58:48 +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>
          <cc>fred.zemke</cc>
          
          <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>4550</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-14 04:05:32 +0000</bug_when>
    <thetext>4.1.5 Function Calls
Notation
[]_AtomizeAtomic()
&quot;and Expr : Type and not(Type=empty)&quot;
    I&apos;m not clear on the need for these conditions. They restrict the
    catchment of the first (fn:data) alternative to expressions with a
    non-empty type; if you dropped these conditions, the only effect would
    be to move untypeable and empty-type expressions from the second to
    the first alternative. But untypeable expressions will raise an error
    in STA under either alternative, and empty-type expressions will yield
    the empty sequence under either alternative. [fn:data(()) == ()]
    So it seems to me that dropping the conditions would simplify the spec
    without changing the semantics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4927</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-19 21:09:31 +0000</bug_when>
    <thetext>Yes I agree with the analysis.
I believe we should drop those condition and simplify as suggested.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5045</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-20 22:29:38 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yes I agree with the analysis.
&gt; I believe we should drop those condition and simplify as suggested.

Note that, in that case, the conditional structures of []_AtomizeAtomic and
[]_Convert become identical, and the two forms can be merged (into
[]_ConvertAtomic, say).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5078</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-21 17:30:49 +0000</bug_when>
    <thetext>Agreed. 
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5142</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-22 16:12:20 +0000</bug_when>
    <thetext>*** Bug 1688 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5143</commentid>
    <comment_count>5</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-22 16:15:27 +0000</bug_when>
    <thetext>The Working Groups have decided to adopt your comment, with an amendment that
the sequencetype has to be normalized for the subtyping judgment to work.

The resulting rule for []_AtomizeAtomic() will be:

[Expr]AtomizeAtomic(SequenceType) denotes
fn:data(Expr) 	If [ SequenceType ]_sequencetype &lt;: xdt:anyAtomicType*
Expr 	   	Otherwise

The question of merging the two rules or not will be left to editorial discretions.

- Jerome
On behalf of the XML query and XSL WGs</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>