New Functions in XSLT and XPath 2.0

There are some pretty big plans for functions in XSLT 2.0 and XPath 2.0. In particular, the following new functions are scheduled for XSLT 2.0:

  • Could provide QName-aware functions to allow the namespace declarations that were in scope to be enforced.

  • Must add date-formatting functions, to support XML schema.

  • Should provide a function to make relative URIs absolute.

  • Must simplify grouping. In XSLT 2.0, it must be possible to group nodes based on their string values.

The following changes are planned for functions in XPath 2.0:

  • Must extend the set of aggregation functions, such as including min and max.

  • Should provide intersection and difference functions for node sets.

  • Should support additional string functions, ...

Get Inside XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.