This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 30074 - Instruction for creating arrays
Summary: Instruction for creating arrays
Status: CLOSED LATER
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-09 16:08 UTC by Michael Kay
Modified: 2017-04-03 18:12 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2017-03-09 16:08:02 UTC
From Max Toro on public-qt-comments:

I'm curious why there's no instruction for creating arrays in XSLT 3.0, but there is for maps and entries.

--
Max Toro
Comment 1 Michael Kay 2017-03-09 16:15:28 UTC
Personal response.

This is an unfortunate result of timing. In our efforts to get the spec finished, we put a freeze on new features and decided not to support XPath 3.1. Later, as it appeared that XPath 3.1 was making good progress, we allowed XSLT 3.0 processors to support 3.1, but did not make it mandatory, and did not add any explicit XSLT capability to support XPath 3.1 extensions such as arrays.

Instructions to create arrays would definitely be "nice to have" and in Saxon I will be plugging the gap with saxon:array and saxon:array-member extension instructions. But I'm afraid we really have to ship the spec now; as with a software project, the more features you add the more you risk never getting the thing out of the door.
Comment 2 Sharon Adler 2017-03-29 20:18:48 UTC
Thank you for your comment.  Michaels response is correct that this is a
result of timing, but he makes it sound as if we considered doing arrays
in XSLT.  Individuals may have wanted to add this feature but our
efforts were focused on Maps and JSON conversion.  In 2011, I chaired
a "SWAT" team from the joint Working Groups to see if we could resolve differences
that inhibited getting a clean design that would work for both groups,
again with the focus on maps and JSON.  The XSLT WG did not have an
advocate to include arrays in XSLT.  Since the work on XSLT 3.0 and
XPath 3.1 took considerable effort and time, those members who wanted
array functionality could get this feature through the XPath
3.1. optional feature in XSLT 3.0.  From the time of Last Call to CR the
last few years we could not attempt to add such a significant feature.