<?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>8131</bug_id>
          
          <creation_ts>2009-10-30 13:25:08 +0000</creation_ts>
          <short_desc>[XQTS] CVS: GenCompEq-2</short_desc>
          <delta_ts>2010-03-16 16:07:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</reporter>
          <assigned_to name="Frans Englich">frans.englich</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>29215</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2009-10-30 13:25:08 +0000</bug_when>
    <thetext>This test is meant to check the resolution of Bug 5223.

Following the text of the resolution of this bug:

(b) If exactly one of the atomic values is an instance of xs:untypedAtomic, it
is cast to a type depending on the other value&apos;s dynamic type T according to
the following rules, in which V denotes the value to be cast:
(b4) In all other cases, V is cast to the primitive base type of T 

Here T = xs:NCName, and the primitive base type of T is xs:string.

Since

xs:untypedAtomic(&apos;1&apos;) cast as xs:string

would not raise FORG0001, why is this the expected error?

(:*******************************************************:)
(: Test: GenCompEq-2                                     :)
(: Written by: Sorin Nasoi                               :)
(: Date: 2009-05-01+02:00                                :)
(: Purpose: General comparison where one of the types is :)
(: xs:untypedAtomic and the other xs:NCName.             :)
(: Expected error FORG0001.                              :)
(:*******************************************************:)

xs:untypedAtomic(&quot;1&quot;) = xs:NCName(&quot;string&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33566</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2010-03-15 09:10:32 +0000</bug_when>
    <thetext>A fix is attempted in CVS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>