<?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>5170</bug_id>
          
          <creation_ts>2007-10-09 20:51:42 +0000</creation_ts>
          <short_desc>[FO] 17.1 Casting to xs:NOTATION???</short_desc>
          <delta_ts>2009-03-18 21:31:11 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hans-Juergen Rennau">hrennau</reporter>
          <assigned_to name="Michael Kay">mike</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>17101</commentid>
    <comment_count>0</comment_count>
    <who name="Hans-Juergen Rennau">hrennau</who>
    <bug_when>2007-10-09 20:51:42 +0000</bug_when>
    <thetext>The table in [17.1] states that casting
- from xs:string to xs:NOTATION
- from xs:NOTATION to xs:NOTATION
is possible (marked as M).

The text however (as well as [XQuery]3.12.3) states clearly that any cast to xs:NOTATION is principally impossible - only subtypes of xs:NOTATION are acceptable as target types. Does the &quot;M&quot; mean that cast to a subtype of xs:NOTATION is possible? But that would be inconsistent arguing, compare the exclusion of xs:anyAtomicType from the table.

I suggest to replace the &quot;M&quot; entries with &quot;N&quot; entries.

With kind regards -
Hans-Juergen Rennau</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17106</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2007-10-09 22:24:44 +0000</bug_when>
    <thetext>The M in the table means MAYBE or certain conditions. The conditions are that only subtypes are allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17107</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-10-09 22:41:32 +0000</bug_when>
    <thetext>I&apos;m inclined to agree with Michael Rys. One could argue that the &quot;M&quot; doesn&apos;t capture the fact that this case is slightly different from any other in the table, but the table is only a summary, and the detailed rules are clear in the text. In fact the situation for NOTATION is explained in the very sentence after the meaning of &quot;M&quot; in the table is stated, suggesting possibly that the author of the table was aware that &quot;M&quot; didn&apos;t fully cover the situation. 

I think we need stronger justification than this to make changes: there must be a plausible case that the specification does not make it clear what behaviour is expected.

Michael Kay (personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17131</commentid>
    <comment_count>3</comment_count>
    <who name="Hans-Juergen Rennau">hrennau</who>
    <bug_when>2007-10-10 21:08:03 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The M in the table means MAYBE or certain conditions. The conditions are that
&gt; only subtypes are allowed.

&quot;MAYBE or certain conditions&quot; is vague - but the text is clear:

&lt;quote&gt;
... and &quot;M&quot; indicates that a conversion ... may succeed for some values in the value space and fails for others.
&lt;/quote&gt;

So the text defines the meaning of the letter &quot;M&quot; as a dependence on the source value - not on the target type. 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17134</commentid>
    <comment_count>4</comment_count>
    <who name="Hans-Juergen Rennau">hrennau</who>
    <bug_when>2007-10-10 21:36:28 +0000</bug_when>
    <thetext>(In reply to comment #2)

You are right in so far as thet text overrides any doubt concerning the impossibility of casting to xs:NOTATION. But the summary table could be made really more useful, more expressive systematic by a very small extension. 

Presently, the &quot;M&quot; stands for four kinds of dependence:
a) on the source value (in all but 3 cases!)
b) on the KIND of the source expression (str-&gt; QN) 
c) on the target type being a subtype (NOT -&gt; NOT)
d) a combination of b) and c) (str -&gt; NOT)

If the table used, besides Y, N and M, special entries for the three special cases - say, S1, S2, S3 which are explained as special kinds of dependence - then the table would give indeed a complete picture, all at a glance.

I think the specifications are indispensable reference for expert users. Any apparent inconsistency - which can only be resolved by judging one information as more authoritative as another - should be avoided.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17149</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-10-11 20:24:53 +0000</bug_when>
    <thetext>You&apos;re quite right that the presentation could be improved (in many, many ways). However, the fact that a change would improve the spec isn&apos;t enough to justify an erratum.

Michael Kay (again, a personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24317</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-03-18 20:54:00 +0000</bug_when>
    <thetext>The WG yesterday gave the editor discretion on how to handle this.

Given the editorial complexity (there is a lot of stylesheet machinery behind this table) and the fact that the complaint is only really about presentation, I propose to do nothing for the current (1.0) specification; but I will look at what improvements can be made in the next round, as part of the proposed change to permit casting between QName and NOTATION.

I&apos;m therefore closing this as WONTFIX. If this resolution is acceptable, Hans-Juergen, I would be grateful if you would close the bug. Silence is consent.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>