<?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>1262</bug_id>
          
          <creation_ts>2005-04-20 13:59:14 +0000</creation_ts>
          <short_desc>Typed value of empty element constructor:</short_desc>
          <delta_ts>2005-05-04 23:43:28 +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 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Jonathan Robie">jonathan.robie</reporter>
          <assigned_to name="Don Chamberlin">chamberl</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>3777</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2005-04-20 13:59:14 +0000</bug_when>
    <thetext>What is the typed value of an empty element constructor? What does
count(data(&lt;e/&gt;)) return?

&lt;e/&gt; is a direct element constructor. The rules that define the typed value and
string value for a direct element constructor are described in 3.7.1.3 Content,
5h and 5i. Although the data model explicitly says that for data model
construction, an empty element&apos;s string value is an empty string, this parallel
part of the XQuery spec does not.

We need to make this case explicit in the XQuery spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3778</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2005-04-20 14:00:57 +0000</bug_when>
    <thetext>This is the change I suggest:

5.h. The string-value property is equal to the concatenated contents
of the text-node descendants in document order. &lt;add&gt;If there are no
text-node descendants, the string-value property is an empty
string.&lt;/add&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3530</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-05-04 23:43:09 +0000</bug_when>
    <thetext>Jonathan,
Thanks for your comment. It has been accepted and implemented. With your 
concurrence, this comment is now closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>