<?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>22839</bug_id>
          
          <creation_ts>2013-07-30 19:33:26 +0000</creation_ts>
          <short_desc>[XP3.1] Ordering on binary types</short_desc>
          <delta_ts>2015-07-06 08:25:49 +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>XPath 3.1</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Jonathan Robie">jonathan.robie</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>91424</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-07-30 19:33:26 +0000</bug_when>
    <thetext>The types xs:hexBinary and xs:base64Binary are currently unordered (that is, the operators le/ge/lt/gt are not defined). It is clearly possible to define an ordering for these types.

Making the types ordered is desirable for three reasons:

(a) orthogonality: it&apos;s an arbitrary restriction and we shouldn&apos;t have arbitrary restrictions.

(b) a new function collation-key() is being introduced under the maps proposal. At present this only supports equality matching, but there are obvious use cases for ordered collation keys. Collation keys are often binary (e.g. in the UCA algorithm for generating collation keys; this will generate a requirement for ordering of binary values

(c) an EXPath initiative is currently defining a library of functions for handling binary data. It is possible for such a community initiative to define new functions, but not to define new operators. The existence of such a function library will make use of the binary data types more popular, and generate a demand for doing magnitude comparisons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105860</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-05-13 15:34:36 +0000</bug_when>
    <thetext>This is implemented in the current spec, the WG has approved it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121768</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-06 08:25:49 +0000</bug_when>
    <thetext>Confirmed that the change has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>