<?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>4845</bug_id>
          
          <creation_ts>2007-07-10 22:54:53 +0000</creation_ts>
          <short_desc>Do we need an error for &quot;]]&gt;&quot; in replacement text?</short_desc>
          <delta_ts>2007-07-31 20:55:24 +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>Update Facility</component>
          <version>Working drafts</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="Don Chamberlin">chamberl</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>15770</commentid>
    <comment_count>0</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2007-07-10 22:54:53 +0000</bug_when>
    <thetext>In http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2007May/0044.html, Mohamed Zergaoui suggested several changes to the update spec, labeled &quot;Editorial&quot;. All but one of the changes are indeed editorial and I will implement them. But I think one of the changes deserves the attention of the working group. Here it is:

In 2.4.3.2 Replacing the Value of a Node

[[
If $target is a comment node, and $string contains two adjacent
hyphens or ends with a hyphen, a dynamic error is raised
[err:XQDY0072].

If $target is a processing instruction node, and $string contains the
substring &quot;?&gt;&quot;, a dynamic error is raised [err:XQDY0026].
]]

The case of -- in comment and &quot;?&gt;&quot; has been taken into account. But
what about &quot;]]&gt;&quot; everywhere in the content ?

I request that the working group consider this issue at a future meeting.

Regards,
Don Chamberlin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15771</commentid>
    <comment_count>1</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2007-07-10 23:16:24 +0000</bug_when>
    <thetext>I think that unlike the -- in comments case the ]]&gt; restriction isn&apos;t a restriction on values in the data model, so shouldn&apos;t concern update, it&apos;s just that an xml serialisation needs to serialise ]]&gt; as ]]&amp;gt; or some such.

David
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15779</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-07-11 10:24:58 +0000</bug_when>
    <thetext>Agree with David C. There&apos;s no problem having a text or attribute node with &apos;]]&gt;&apos; in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15993</commentid>
    <comment_count>3</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2007-07-31 20:55:10 +0000</bug_when>
    <thetext>On July 31, 2007, the Query working group decided to close this bug report with no change to the specifications. The string &quot;]]&gt;&quot; is valid as text content in the XQuery Data Model. When a Data Model instance containing this string is serialized, the string will be escaped appropriately.
--Don Chamberlin (for the Query working group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>