<?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>3760</bug_id>
          
          <creation_ts>2006-09-21 09:47:37 +0000</creation_ts>
          <short_desc>[FS] technical: injected calls to fs:item-sequence-to-node-sequence/-untypedAtomic</short_desc>
          <delta_ts>2007-10-02 02:09:16 +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>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="Michael Dyck">jmdyck</assigned_to>
          <cc>jmdyck</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>11937</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-21 09:47:37 +0000</bug_when>
    <thetext>4.7.1 / Norm / rule 4
4.7.3.1 / Norm / rule (2|3)
fs:item-sequence-to-node-sequence(...)
    As far as I can tell, there&apos;s no justification for inserting a call
    to this function when normalizing direct and computed element
    constructors.  It&apos;s redundant, since the DEv semantics of
    CompElemConstructor (4.7.3.1 / DEv) call the function anyway.

    I suppose it&apos;s there because 4.7.3.1 / STA / rule (1|2) requires
    the content Expr of a Core CompElemConstructor to have a node-sequence
    type. But this seems needlessly constrained (and can lead to problems,
    see Bug 3758).  The STA rules could just as easily require the Expr
    to have an item-sequence type (i.e., the type that 7.1.5 / STA
    currently requires of the arg to fs:item-sequence-to-node-sequence).

4.7.1.1 / Norm / rule 5
4.7.3.2 / Norm / rule (2|3)
fs:item-sequence-to-untypedAtomic(...)
    Similarly, with 4.7.3.2 / STA / rule (1|2) and 7.1.7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12049</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 15:15:57 +0000</bug_when>
    <thetext>I think this is something that has been overlooked. the call to fs:item-sequence-to-node-sequence(...) should only be at one place.

I believe the right fix for this, consistent with the rest of the spec
would be to keep it in normalization, and remove it from the dynamic
evaluation rules.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12069</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-27 04:30:59 +0000</bug_when>
    <thetext>If you keep it in normalization, then it *won&apos;t* be in only one place, it&apos;ll be in 2 or 3 places. (And similarly with the attribute case.) I think you&apos;d be better off removing it from normalization and keeping it in the dynamic semantics.

[I think it&apos;s a bad idea to take what is conceptually a part of the dynamic semantics of a construct (e.g., building the content-sequence of an element constructor) and say that it&apos;s not part of the dynamic semantics of the core construct, rather it&apos;s something that will have happened (because of a normalization injection) to an argument of the construct. It muddies the correspondence between the FS and XQuery specs, and makes it harder to convince oneself that they say the same thing (or to detect that in fact they don&apos;t). In short, it&apos;s an unnecessary and possibly detrimental complication.]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12499</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-10-16 18:26:00 +0000</bug_when>
    <thetext>sigh... seems my previous post didn&apos;t get through.
so here it is again.

I meant to say one place as either normalization or dynamic evaluation. We could remove it from one or the others, and I think there could be arguments both ways. But as far as I know, fs:() functions are usually introduced through normalization so that might make it more consistent with other parts of the spec. also, all of the other constructors introduce those functions at normalization time so that is a much bigger change.

I recommend that we close that bug by removing the fs:item-sequence-to-node-sequence(...) call from either the normalization or the dynamic semantics. And leave the choice about which one of those should be removed to editorial discretion.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12505</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-10-17 04:47:46 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; 
&gt; I meant to say one place as either normalization or dynamic evaluation.

Ah, I see what you mean. Yes, it should be in &quot;one place&quot; in at least that sense.

&gt; I recommend that we close that bug by removing the
&gt; fs:item-sequence-to-node-sequence(...) call from either the normalization or
&gt; the dynamic semantics. And leave the choice about which one of those should be
&gt; removed to editorial discretion.

Okay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12549</commentid>
    <comment_count>5</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-10-19 19:37:02 +0000</bug_when>
    <thetext>The XML Query and XSLT WGs have decided to adopt the proposed change to fix that bug, as specified in comment #3.
Best,
- Jerome, on Behalf of the WGs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15080</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-05-13 00:17:07 +0000</bug_when>
    <thetext>The analogous situation for attribute content (pointed out in Comment #0) has not been fixed in the Rec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16589</commentid>
    <comment_count>7</comment_count>
    <who name="David Wilson">dhwilson</who>
    <bug_when>2007-09-14 12:59:45 +0000</bug_when>
    <thetext>I recommend that we close that bug by removing the
fs:item-sequence-to-node-sequence(...) call from either the normalization or
the dynamic semantics. And leave the choice about which one of those should be
removed to editorial discretion.

I agree on comment 3# 
www.shuttersdirect.nl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16957</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-10-02 02:07:20 +0000</bug_when>
    <thetext>The unresolved portion of this issue (Comment #6) has been resolved by the fix for FS erratum E011, which I have committed to the source files for the next edition of the FS document. Consequently, I&apos;m marking this issue resolved-FIXED, and CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>