<?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>1447</bug_id>
          
          <creation_ts>2005-05-14 01:14:51 +0000</creation_ts>
          <short_desc>[XQuery] strip construction and is-id on attributes</short_desc>
          <delta_ts>2005-06-10 18:44:23 +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="Michael Rys">mrys</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>3243</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-05-14 01:14:51 +0000</bug_when>
    <thetext>The spec currently says in 3.7.1.3: 
&quot;If construction mode in the static context is strip:

The type-name property of each copied element node is set to xdt:untyped. Its 
nilled, is-id, and is-idrefs properties are set to false.

The type-name property of each copied attribute node is set to 
xdt:untypedAtomic.&quot;

attributes can also have an is-id property according to the following sentence 
in 3.7.1.1 &amp; 3.7.3.2:
&quot;If the attribute name is in namespace http://www.w3.org/XML/1998/namespace 
and its local part is id (informally, if the attribute name is xml:id), the 
string-value of the attribute must be in the lexical space of the type 
xs:NCName [err:XQST0082], and the is-id property of the resulting attribute 
node is set to true;&quot;

But it is also set when the type of the attribute is of type xs:ID.

I think that striping type information should set the is-id property the 
attribute to false as long as the original type of the attribute (xs:ID or 
subtype) was responsible for the is-id property to be set to true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2730</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-06-10 17:19:00 +0000</bug_when>
    <thetext>On May 16, the Query Working Group decided to respond to your comment by 
revising XQuery Section 3.7.1.3, Rule 1-e-ii-C-II as follows:

&quot;If the copied node is an attribute node, its type-name property is set to 
xdt:untypedAtomic. Its is-idrefs property is set to false. Its is-id property 
is set to true if the qualified name of the attribute node is xml:id; otherwise 
it is set to false.&quot;

Please let us know whether you are satisfied with this resolution of your 
comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2735</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-06-10 18:44:23 +0000</bug_when>
    <thetext>Looks good. Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>