<?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>3644</bug_id>
          
          <creation_ts>2006-08-31 13:28:50 +0000</creation_ts>
          <short_desc>[F+O] Casting xs:QName and xs:NOTATION to xs:string</short_desc>
          <delta_ts>2007-02-25 23:33:47 +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>Candidate Recommendation</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>11338</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-08-31 13:28:50 +0000</bug_when>
    <thetext>In 7.1.2, bullet 3 says:

If ST is xs:QName, TV is fn:concat(fn:prefix-from-QName(SV), &quot;:&quot;, fn:local-name-from-QName(SV)).

(a) the hyperlinking has gone wrong (editorial)

(b) what if there is no prefix? This would produce the result &quot;:localpart&quot;!

F+O makes it clear that casting xs:NOTATION to xs:string is allowed (always), but doesn&apos;t make it clear how it is done. In 17.1.2 it falls through to the bullet &quot;In all other cases, TV is the [XML Schema Part 2: Datatypes Second Edition] canonical representation of SV...&quot;, which isn&apos;t really good enough.

I suggest we replace the third bullet in 17.1.2 by:

* If ST is xs:QName or xs:NOTATION:
   - if the qualified name has a prefix, TV is the concatenation of the prefix, a colon, and the local-name
   - otherwise TV is the local-name

We could refer to XDM section 3.3.3 for clarification if required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11783</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-15 17:27:09 +0000</bug_when>
    <thetext>The XSL and XML Query WGs considered this issue at their Sept. 12 meeting.

Thw WGs agreed to make the change that you have suggested in (b). We were not clear what you considered wrong in (a), and so will not take any action on this part.

Please close this bug report if you agree with our resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11787</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-09-15 17:52:36 +0000</bug_when>
    <thetext>Fine. 

Point(a) was purely editorial: as displayed on my browser the 3rd bullet of 17.1.2 has the text shown within &lt;A&gt;...&lt;/A&gt; below marked as a hyperlink, which leads to odd changes in font size and colour. (The link is to the fn:concat function)

If ST is xs:QName, TV is &lt;A&gt;fn:concat(fn:prefix-from-QName(&lt;/A&gt;SV), &quot;:&quot;, fn:local-name-from-QName(SV)).

I&apos;d suggest hyperlinking each of the function names individually, or none of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14117</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:33:47 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>