<?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>1825</bug_id>
          
          <creation_ts>2005-07-28 16:12:58 +0000</creation_ts>
          <short_desc>Contradictory statements for casting from xs:QName to xs:QName</short_desc>
          <delta_ts>2005-09-29 12:51:16 +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>Functions and Operators 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Frans Englich">frans.englich</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</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>5267</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2005-07-28 16:12:58 +0000</bug_when>
    <thetext>Hello,

The Casting table in section 17.1 allows casting xs:QName to itself, but in
section 17.1.1, one can read:

&quot;A static error is raised [err:XPST0083]XP if the argument to a cast for
xs:QName or a type derived from xs:QName or xs:NOTATION is not an xs:string
literal.&quot;

Hence, the latter disallows casting from xs:QName, since xs:QName is not a
xs:string literal. I think it makes sense and should be allowed to cast from
xs:QName to xs:QName, and hence that the latter clause should be loosened to
allow casting from an xs:string literal or xs:QName.

This bug is similar to &quot;[Bug 1515] Contradictory statement: casting to
xs:notation permitted/allowed&quot;, http://www.w3.org/Bugs/Public/show_bug.cgi?id=1515


Cheers,
Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5271</commentid>
    <comment_count>1</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-07-28 18:37:28 +0000</bug_when>
    <thetext>Casting from a type to itself is a special case -- a noop -- and everyone
recognizes this.  I don&apos;t think a special exception is required.
I suggest we close this without action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5273</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2005-07-28 18:39:55 +0000</bug_when>
    <thetext>
Sure, go ahead and close(resolution INVALID, I guess).


Frans
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5280</commentid>
    <comment_count>3</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-07-28 21:04:24 +0000</bug_when>
    <thetext>Closed with approval of the commentor.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>