<?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>1515</bug_id>
          
          <creation_ts>2005-06-29 19:35:19 +0000</creation_ts>
          <short_desc>Contradictory statement: casting to xs:notation permitted/allowed</short_desc>
          <delta_ts>2005-09-29 11:30:02 +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>Other</rep_platform>
          <op_sys>Linux</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="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>4385</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2005-06-29 19:35:19 +0000</bug_when>
    <thetext>When reading section &quot;17.1 Casting from primitive types to primitive types&quot;    
found in the working draft of 4th April,[1] I think contradictory statements    
can be found. The first statement, which is the second paragraph in the    
section, reads:    
    
&quot;[XML Schema Part 2: Datatypes Second Edition] defines xs:NOTATION as an    
abstract type. Thus, casting to xs:NOTATION is not permitted.&quot;    
    
However, when I interpret the &quot;casting table&quot; found a bit below, I judge that    
xs:NOTATION can be cast to itself(and maybe xs:string).     
    
What is correct becomes quickly complicated, in my opinion. I don&apos;t see how the    
situation of casting from xs:NOTATION to xs:NOTATION would occur in practice,    
since the data type is abstract. Hence, does the table document a casting which    
is in theory doable but cannot occur in practice? If the &quot;casting table&quot; also   
included sub-classes of the data types(e.g that casting to/from a xs:NOTATION   
derivation) it would to me make sense, but I don&apos;t see how it does that.   
    
Considering that one user(me) is at least confused, the formerly mentioned  
paragraph could perhaps be deepened a bit.    
    
 
Cheers, 
Frans  
 
1.http://www.w3.org/TR/2005/WD-xpath-functions-20050404/#casting-from-primitive-to-primitive</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4388</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-06-29 22:27:01 +0000</bug_when>
    <thetext>Yes, we probably need to explain this better. Casting to subtypes of xs:NOTATION
is allowed, but the standard mechanism of casting across to xs:NOTATION and then
down to the subtype doesn&apos;t really work here.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4530</commentid>
    <comment_count>2</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-07-12 21:25:26 +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 to clarify that casting is not permitted from xs:NOTATION to
xs:NOTATION, since it is an abstract type, although it is permitted from one
subtype of xs:NOTATION to another.  The entry in the table at the intersection
of xs:NOTATION and xs:NOTATION should be changed to &quot;M&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>