QT4 CG Dashboard

These are the open pull requests and current branches. Where possible, a summary of the changes between the pull request or branch and the latest drafts is provided with a DeltaXML pipeline.

Pull requests in descending order

PR #1666: 1649 result of function annotations

Pull request #1666 by michaelhkay.

Brings the spec of fn:function-annotations into line with the test cases and examples Fix #1649

Changed files
  • specifications/xpath-functions-40/src/function-catalog.xml

PR #1665: 1650 Tidy up fn:type-of

Pull request #1665 by michaelhkay.

Drop fn:node-kind from the function catalog so it disappears from the function finder Correct one example of fn:type-of and add some more examples. Fix #1650

Changed files
  • specifications/xpath-functions-40/src/function-catalog.xml

PR #1663: Remove DTD/stylesheet distractions at the top of the schema

Pull request #1663 by ndw.

We decided to close #374 without further action. This PR just cleans up the relevant schema file by removing the DTD and stylesheet related comment(s).

Changed files
  • specifications/xslt-40/src/schema-for-xslt40.xsd

PR #1617: 1606 Drop named item types, refine named record types, esp in XSLT

Pull request #1617 by michaelhkay.

Fix #1606 Fix #1506 Fix #1485 This PR drops the general concept of declaring named item types in XQuery and XSLT, and focuses on declaring named record types. The rules for named record types are tidied up editorially in XQuery (for example there is a clearer distinction between the syntax production `RecordType` and the concept of a record type, which can be declared either using that syntax, or otherwise). In XSLT the `<xsl:item-type>` declaration is dropped and an `<xsl:record-type>` declaration is introduced.

Changed files
  • specifications/grammar-40/xpath-grammar.xml
  • specifications/xquery-40/src/errors.xml
  • specifications/xquery-40/src/expressions.xml
  • specifications/xquery-40/src/query-prolog.xml
  • specifications/xslt-40/src/element-catalog.xml
  • specifications/xslt-40/src/xslt.xml

PR #1609: 1651 Ordered Maps

Pull request #1609 by michaelhkay.

Fix #564 Introduces ordered maps: specifically, sorted maps which return entries in order sorted by key, and fifo maps which return entries in the order of insertion. Although this has been on the TODO-list for a long time and has many useful applications, raising a PR at this stage is particularly motivated by comments on the elements-to-maps() function pointing out that having a predictable order of properties in serialized JSON can be very useful, and that many existing XML-to-JSON converters achieve this. This gives the opportunity, for example, to parse JSON into a representation that retains input order, delete and/or add some properties, and then serializate the JSON with the order retained.

Changed files
  • specifications/xpath-datamodel-40/src/xpath-datamodel.xml
  • specifications/xpath-functions-40/src/function-catalog.xml
  • specifications/xpath-functions-40/src/xpath-functions.xml
  • specifications/xquery-40/src/expressions.xml
  • specifications/xquery-40/src/query-prolog.xml
  • specifications/xslt-40/src/element-catalog.xml
  • specifications/xslt-40/src/schema-for-xslt40.rnc
  • specifications/xslt-40/src/schema-for-xslt40.xsd
  • specifications/xslt-40/src/xslt.xml
  • specifications/xslt-xquery-serialization-40/src/xslt-xquery-serialization.xml

PR #1587: 557 Add fn:binary-resource

Pull request #1587 by michaelhkay.

Adds the function `fn:binary-resource` Also fixes some inconstencies in the handling of static/executable base URI in other resource access functions. Fix #557

Changed files
  • specifications/xpath-functions-40/src/fos.xsd
  • specifications/xpath-functions-40/src/function-catalog.xml
  • specifications/xpath-functions-40/src/xpath-functions.xml
  • specifications/xquery-40/src/expressions.xml

PR #1296: 982 Rewrite of scan-left and scan-right

Pull request #1296 by michaelhkay.

Fix #982 1. The "equivalent expression" is replaced with one that is much shorter and hopefully easier to understand, though hopelessly inefficient as an actual implementation. 2. The result no longer includes the zero value. This seems simpler, and is consistent with other expositions I have read, e.g. of the Scala functions. 3. The signature of scan-left and scan-right is now identical to fold-left and fold-right, which apart from having the virtue of consistency, makes it much easier to specify one in terms of the other. The change is that the callback function now allows a position argument.

Changed files
  • specifications/xpath-functions-40/src/function-catalog.xml

PR #1283: 77b Update expressions

Pull request #1283 by michaelhkay.

This PR is the result of splitting PR #832 into two parts; this part extracts update expressions into a separate proposal, for ease of review.

Changed files
  • specifications/grammar-40/xpath-grammar.xml
  • specifications/xquery-40/src/expressions.xml

PR #1227: 150 PR resubmission for fn ranks

Pull request #1227 by dnovatchev.

This is a resubmission of the original [PR 1027 for function fn:ranks](https://github.com/qt4cg/qtspecs/pull/1027). No new changes, this is fixing a pure git-technical issue. Now the PR is submitted from a dedicated feature-branch and not from _master_

Changed files
  • specifications/xpath-functions-40/src/xpath-functions.xml

PR #1062: 150bis revised proposal for fn:ranks

Pull request #1062 by michaelhkay.

This proposal is an amended/alternative proposal for the fn:ranks function, taking into account the work done on the original issue #150 and the PR #1027 and the comments raised. Acknowledgements to the original author for the idea and for a lot of good work on examples etc. It amends the previous proposal as follows: (a) the signature and the semantics are aligned with fn:sort. This adds some functionality (multiple sort keys, ascending/descending) and also removes some complexity (two different collations for comparing input items and result items) (b) the style of exposition is changed editorially for consistency with other functions

Changed files
  • specifications/xpath-functions-40/src/function-catalog.xml
  • specifications/xpath-functions-40/src/xpath-functions.xml