<?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>4264</bug_id>
          
          <creation_ts>2007-01-19 12:04:16 +0000</creation_ts>
          <short_desc>K2-ComputeConAttr-5 vs. K2-ComputeConAttr-35</short_desc>
          <delta_ts>2007-01-19 12:34:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Tim Mills">tim</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>13708</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-01-19 12:04:16 +0000</bug_when>
    <thetext>When in boundary space mode &quot;strip&quot;, can the expected result both of these tests be correct?

If empty CDATA sections generate an empty sequence, then no content appears before the computed attribute and neither test should throw XQTY0024.

If empty CDATA sections generate an empty text node, then both tests should throw XQTY0024.

(:*******************************************************:)
(: Test: K2-ComputeConAttr-35                            :)
(: Written by: Frans Englich                             :)
(: Date: 2007-01-15T15:15:44+01:00                       :)
(: Purpose: Empty CDATA sections generate no text nodes. :)
(:*******************************************************:)
&lt;elem&gt;&lt;![CDATA[]]&gt;{attribute name {&quot;content&quot;}}&lt;alem/&gt;
&lt;/elem&gt;

(:*******************************************************:)
(: Test: K2-ComputeConAttr-5                             :)
(: Written by: Frans Englich                             :)
(: Date: 2007-01-15T15:15:44+01:00                       :)
(: Purpose: Ensure XQTY0024 is issued when content appears before computed attri
butes. :)
(:*******************************************************:)
&lt;elem&gt;
                &lt;![CDATA[]]&gt;
                {attribute name {&quot;content&quot;}}
&lt;/elem&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13709</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-19 12:29:47 +0000</bug_when>
    <thetext>The empty CDATA section is a lexical notation for a sequence of zero characters within the element content. It&apos;s the same as writing nothing at all, except that the rules for determining boundary whitespace are determined before expansion of entity references and CDATA sections. For better or for worse, the definition is:

Boundary whitespace is a sequence of consecutive whitespace characters within the content of a direct element constructor, that is delimited at each end either by the start or end of the content, or by a DirectConstructor, or by an EnclosedExpr

and in K2-ComputeConAttr-5, the whitespace characters are not boundary whitespace because they are delimited at one end by a CDATA section, which is neither a DirectConstructor nor an EnclosedExpr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13710</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-01-19 12:34:09 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>