<?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>17602</bug_id>
          
          <creation_ts>2012-06-26 12:20:25 +0000</creation_ts>
          <short_desc>[XQ31] Type alias / define</short_desc>
          <delta_ts>2016-09-26 05:06:13 +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>Requirements for Future Versions</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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="John Snelson">john.snelson</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>mike</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>69404</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2012-06-26 12:20:25 +0000</bug_when>
    <thetext>With the addition of higher order functions and the discussion around adding map values, SequenceTypes are becoming more and more complex - especially when building complex data structures from these types of values.

We should add a type alias (or type definition) facility to allow complex SequenceType to be referred to with simple QNames, and to allow the definition of recursive types:

declare type-alias my:transform-function as
  function($nodes as node()*, $params as map(*)) as item()*;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81061</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-01-08 16:59:05 +0000</bug_when>
    <thetext>We discussed this in meeting #523 and decided this is a &quot;may&quot; requirement.

&lt;quote&gt;
Q2.9.17 Bugzilla Bug 17602, [XQ31ReqUC] Type alias / define
See http://www.w3.org/Bugs/Public/show_bug.cgi?id=17602

may (for maps)
&lt;/quote&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91423</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2013-07-30 18:54:51 +0000</bug_when>
    <thetext>This bug has been redirected to the XQuery 3.1 document, as it has been accepted as a MAY requirement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104495</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2014-04-27 00:32:19 +0000</bug_when>
    <thetext>In their teleconference of 2014-04-22, the Working Group decided that this MAY requirement would not be satisfied in the XQuery 3.1 timeframe.  As a consequence, I am marking the bug RESOLVED/LATER.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104496</commentid>
    <comment_count>4</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2014-04-27 00:34:09 +0000</bug_when>
    <thetext>In their teleconference of 2014-04-22, the Working Group decided that this MAY requirement would be reconsidered for any future version of XQuery, should such future version materialize.  As a consequence, I am recategorizing this bug as Requirements for Future Versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127527</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-26 05:06:13 +0000</bug_when>
    <thetext>See

http://dev.saxonica.com/blog/mike/2016/09/tuple-types-and-type-aliases.html

for a Saxon extension designed to meet this requirement</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>