<?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>5985</bug_id>
          
          <creation_ts>2008-08-24 02:24:10 +0000</creation_ts>
          <short_desc>[XQuery 1.1] converting a sequence into a string</short_desc>
          <delta_ts>2009-11-05 18:39:58 +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>XQuery 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsDrafting</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="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>mike</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>21637</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-08-24 02:24:10 +0000</bug_when>
    <thetext>Four sections in the XQuery 1.0 spec:
    3.7.1.1 Attributes
    3.7.3.2 Computed Attribute Constructors
    3.7.3.5 Computed Processing Instruction Constructors
    3.7.3.6 Computed Comment Constructors
have substantially the same chunk of text, for converting an XDM sequence
into a string value:

   1.  Atomization is applied to the [input], converting it to a
       sequence of atomic values.
   2.  If the result of atomization is an empty sequence, the [output]
       is the zero-length string. Otherwise, each atomic value in the
       atomized sequence is cast into a string.
   3.  The individual strings resulting from the previous step are merged
       into a single string by concatenating them with a single space
       character between each pair. The resulting string [is the output].

Could these be abstracted into a single concept/process for 1.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21640</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-08-24 21:28:07 +0000</bug_when>
    <thetext>For information, XSLT 2.0 collects these up into a a single procedure described at

http://www.w3.org/TR/xslt20/#constructing-simple-content
 
The XSLT procedure is slightly different from the XQuery procedure, in that it discards zero-length text nodes and merges adjacent text nodes before atomizing. This is largely to ensure that XSLT 2.0 behaves in the same way as 1.0.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22348</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2008-11-03 21:27:31 +0000</bug_when>
    <thetext>This would absolutely be an improvement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29350</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-11-05 18:39:58 +0000</bug_when>
    <thetext>The WG decided to leave this to the discretion of the editor. This change is purely editorial.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>