<?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>29406</bug_id>
          
          <creation_ts>2016-01-30 02:19:21 +0000</creation_ts>
          <short_desc>[FO31] no error conditions for invalid URI for fn:collation-key</short_desc>
          <delta_ts>2016-03-22 09:36:30 +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 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>andrew_coleman</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>124749</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-01-30 02:19:21 +0000</bug_when>
    <thetext>The text of fn:collation-key suggests that the input of the second argument must be some kind of URI, but the hint toward this is vague:

    &quot;If the collation URI is a relative reference, it is resolved against the 
    static base URI.&quot;

There is nothing in the text that suggests that it should otherwise be an absolute URI, that it should be in the value space of xs:anyURI or what happens when the $collation argument is not a URI at all.

Perhaps it is meant to allow any string value without error, but then the sentence on the URI should perhaps be removed or refactored.

I also wonder whether an error should be raised in case the collation is unknown. Currently, FOCH0004 might be thrown in that case, implying that if a collation is now known, it cannot possibly create a key from it, but that seems convoluted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124757</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-01-30 09:28:44 +0000</bug_when>
    <thetext>The handling of collation URIs in fn:collation-key() is no different from any other function with a collation argument. It should have a reference to section 5.3.5 to make this clear.

The validation of collation URIs (as URIs) is based closely on that for namespace URIs. Implementations can decide what set of collation names they will recognize, and they can confiine this set to string that are valid URIs if they wish, but they are not constrained to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124834</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-02-04 14:31:14 +0000</bug_when>
    <thetext>At the teleconference on 2016-02-02, the WG agreed to resolve this by added the cross-reference to section 5.3.5 as described in comment #1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125582</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-03-22 09:36:30 +0000</bug_when>
    <thetext>The changes have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>