<?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>1526</bug_id>
          
          <creation_ts>2005-07-09 07:26:27 +0000</creation_ts>
          <short_desc>$x cast as xdt:anyAtomicType</short_desc>
          <delta_ts>2005-09-29 11:32:48 +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>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 Kay">mike</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>4462</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-09 07:26:28 +0000</bug_when>
    <thetext>(Raised by Frans Englich on the xsl-list at mulberrytech)

We don&apos;t seem to have any rule that says what should happen if you write

$x cast as xdt:anyAtomicType

One would think it should fail, because xdt:anyAtomicType is abstract - except
that we no longer seem to say anywhere that xdt:anyAtomicType is abstract.

Saxon 8.4 allows this expression through, because if ($x instance of T) is true
then it treats ($x cast as T) as a no-op.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4506</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-07-11 19:15:59 +0000</bug_when>
    <thetext>It should not be allowed. This could be one reason to re-introduce the notion 
of abstract types (together with xs:NOTATION).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4529</commentid>
    <comment_count>2</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-07-12 21:21:49 +0000</bug_when>
    <thetext>The WGs decided on the joint call on July 12, 2005 to add wording to section
17.1 of the F&amp;O harmonizing with the wording in the XQuery/XPath documents to
clarify that casting is not permitted to xdt:anyAtomic type and error XPST0080
is raised if it is attempted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>