<?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>1458</bug_id>
          
          <creation_ts>2005-05-17 14:14:34 +0000</creation_ts>
          <short_desc>XQST0082 should be a dynamic error not a static error</short_desc>
          <delta_ts>2005-07-28 18:35:19 +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>DUPLICATE</resolution>
          <dup_id>1570</dup_id>
          
          <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="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>3280</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-05-17 14:14:34 +0000</bug_when>
    <thetext>This relates to attribute constructors for the xml:id attribute within a direct
element constructor. List item 5 in 3.7.1.1 reads:

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; otherwise the is-id property is set to false.

In general it&apos;s not known until run-time whether the value of the attribute is a
valid NCName, so this should be a dynamic error not a static error.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3281</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-05-17 14:19:46 +0000</bug_when>
    <thetext>Also affects 3.7.3.2 Computed Attribute Constructors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3283</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-05-17 14:30:44 +0000</bug_when>
    <thetext>I also note that XSLT explicitly says there are no constraints on the value of
an xml:id attribute, whereas XQuery says it&apos;s an error if it isn&apos;t an NCName. I
can&apos;t see any good reason why the two specs should be different. I think the
XSLT decision was made on the basis that invalid values should only be an error
if you are validating.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5072</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-07-21 16:27:42 +0000</bug_when>
    <thetext>At the July 2005 F2F, Don Chamberlin observed that this bug is a duplicate of
#1570. 

*** This bug has been marked as a duplicate of 1570 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>