<?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>5325</bug_id>
          
          <creation_ts>2007-12-19 13:55:52 +0000</creation_ts>
          <short_desc>[UPD] Namespace inheritance for Insert/Replace</short_desc>
          <delta_ts>2008-01-15 18:34:53 +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>Recommendation</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="Michael Kay">mike</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>18134</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-12-19 13:55:52 +0000</bug_when>
    <thetext>When elements are added to a tree by an insert or replace expression, it&apos;s not clear whether the inserted elements inherit the in-scope namespaces of their new parent. Possible answers are (a) always inherit, (b) never inherit, (c) conditionally inherit based on the copy-namespaces mode in the static context.

For consistency with element construction (c) seems the most logical, given that the mode exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18293</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2008-01-14 23:54:21 +0000</bug_when>
    <thetext>I believe that (c) is the only possible interpretation of the existing spec. The insert expression and the replace expression both reference the rules for evaluating an enclosed expression in an element constructor [XQuery Section 3.7.1.3]. In the referenced section, Rule 1.e.ii.D specifies that the in-scope-namespaces property of the new node depends on copy-namespaces mode.

I think the existing wording makes the intention sufficiently clear. The wording could be made more precise (and less readable) by making the following changes: 

(1) In the insert section, add the following phrase immediately after the reference to XQuery Section 3.7.1.3: &quot;(interpreting &apos;the constructed node&apos; as &apos;the new parent of the inserted node(s)&apos;.)&quot;

(2) In the replace section, add the following phrase immediately after the reference to XQuery Section 3.7.1.3: &quot;(interpreting &apos;the constructed node&apos; as &apos;the parent of the replaced node&apos;.)&quot;

--Don Chamberlin

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18324</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2008-01-15 18:34:35 +0000</bug_when>
    <thetext>On 15 Jan 2008, the working group decided to close this bug report with no changes, regarding the existing specification to be sufficiently clear. Michael, since you were present at the discussion, I am marking the bug report as Closed.
--Don Chamberlin (for the Query working group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>