<?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>6325</bug_id>
          
          <creation_ts>2008-12-19 11:20:06 +0000</creation_ts>
          <short_desc>[DM] Type Hierarchy diagram confusing</short_desc>
          <delta_ts>2009-10-27 15:36: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>Data Model 1.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Michael Kay">mike</reporter>
          <assigned_to name="Anders Berglund">alb.w3c</assigned_to>
          <cc>jim.melton</cc>
          
          <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>22813</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-12-19 11:20:06 +0000</bug_when>
    <thetext>Comment from a reader/user who misread the type hierarchy diagram (appearing in both DM and FO). See the thread starting at 

http://markmail.org/message/or2ialckrngn5xdk

&lt;quote&gt;
My mistake was I drew the wrong conclusion from the Type Hierarchy diagram: http://www.w3.org/TR/xpath-datamodel/#types-hierarchy. There is a line from xs:QName to xs:string on the diagram, which I was incorrect in thinking was xs:QName -&gt; xs:string. In reality it is of course two lines merging that represent xs:QName -&gt; xs:anyAtomicType, and xs:string -&gt; xs:anyAtomicType. 

IMHO the edges of the graph on the diagram should state their direction. UML has the transparent arrow head symbol to represent the direction for this relationship. Something similar here would be a good idea.
&lt;/quote&gt;

Another point about this diagram: I think it&apos;s really confusing trying to present two type hierarchies (schema types and item types) on one diagram. It would be much better to split them into separate diagrams.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22814</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2008-12-19 18:26:43 +0000</bug_when>
    <thetext>Adding arrows may be a good idea, but I think showing the connection of schema types and item types in one hierarchy is important. The original diagram called the distinction out using shapes and colors... Maybe we could improve the visual clues, but I think it is important to show that atomic types are both while complex types and node types are just one...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29067</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2009-10-27 15:36:02 +0000</bug_when>
    <thetext>After considerable reflection, the WGs decided not to make any changes to the type hierarchy diagrams (in either the Data Model document or the Functions and Operators document) with respect to the 2007 Recommendations for XQuery 1.0 and XPath 2.0.  The WGs do not believe that it makes sense to revise the diagram retroactively for the Recommendations.  Therefore, I&apos;m marking the bug RESOLVED/WONTFIX (for the Recommendations) and trust that you are willing to mark the bug CLOSED. 

However, we have taken positive action for the XQuery 1.1 and XPath 2.1 drafts by splitting the diagram into three diagrams (one for &quot;item&quot;, one for &quot;xs:anyType&quot;, and the last for &quot;xs:anyAtomicType&quot;), with arrows &quot;pointing&quot; from derived types &quot;up&quot; to the types from which they are derived. 

Hope this helps.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>