<?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>1629</bug_id>
          
          <creation_ts>2005-07-15 10:15:37 +0000</creation_ts>
          <short_desc>[FS] technical: 4.7.1 Direct Element Constructors: character content</short_desc>
          <delta_ts>2006-11-09 22:05:56 +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>
          
          
          <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>4707</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-15 10:15:37 +0000</bug_when>
    <thetext>4.7.1 Direct Element Constructors

Norm

&quot;Literal XML character data (CDATA) is assumed to be processed directly at
parsing level so it does not require any formal treatment.&quot;
    I think it&apos;s a bad idea for the FS to assume that the parsing phase
    does anything but parse. Instead, I don&apos;t see any problem with the FS
    treating CDataSections the same way it treats CharRefs and
    PredefinedEntityRefs.

&quot;The normalization rule for a contiguous sequence of characters assumes:&quot;
    1. boundary whitespace handling
    2. non-literal character resolution
    Rather than just assuming that this processng has occurred (at some
    stage and in some way that&apos;s disconnected from the formal semantics),
    it would be better to explicitly hook it into the formal semantics.
    See below.

Norm / rule 5
fn:codepoints-to-string((Char | &quot;{{&quot; | &quot;}}&quot; | CharRef | PredefinedEntityRef)+)
    You can&apos;t just plop down a hunk of element content as the argument in
    a function call: it isn&apos;t well-formed syntax. E.g., you could get
    something like
        fn:codepoints-to-string(-0A )

    Instead, I suggest:

        [[ DirCharsUnit ]]_ElementContent
        ==
        text { [[ DirCharsUnit ]]_DirCharsUnit }

    where []_DirCharsUnit is defined (in prose) to:
        a. normalize line-ends?
        b. handle boundary whitespace
        c. resolve non-literal characters (CharRefs, PredefinedEntityRefs,
           CDataSections, and escaped-braces)
        [reference XQuery 3.7.1.3]
        and then express the result as a StringLiteral (or any other
        Core Expr that yields the same value, I guess).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5215</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-26 15:16:49 +0000</bug_when>
    <thetext>I agree with the proposed changes, except I am not sure about the case of CDATA
sections. I do believe that many processor deal with CDATA directly at the
parsing level. We could formally treat CDATA sections as suggested, but I am
somewhat worried that the XQuery specification is making distinctions on how to
treat CDATA sections which forces the processor to keep track of where are the
CDATA boundaries.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5225</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-07-26 16:11:10 +0000</bug_when>
    <thetext>This is the formal response from the XML Query WG and the XSL WG. 

We agree with the essence of the comment and have agreed to adopt your proposal
(the part following the phrase &quot;Instead, I suggest&quot;). 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9483</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-04-27 07:28:19 +0000</bug_when>
    <thetext>The CR does not reflect your adoption of my proposal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9529</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-05-01 00:21:45 +0000</bug_when>
    <thetext>Reviewing the bug activity, it seems this bug may have been marked as closed before it was implemented. So it just got dropped of the work list.
We will try and fix this issue for the next publication.
- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9745</commentid>
    <comment_count>5</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-05-10 19:06:47 +0000</bug_when>
    <thetext>Fixed Section 4.7.1 to include the suggested new treatment of DirCharUnits, including processing of CDataSections.
- Jerome
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>