Menu

#1061 mode="#current" within a function

v9.2
closed
5
2012-10-08
2010-04-12
Michael Kay
No

Saxon throws a NullPointerException if an apply-templates instruction specifying mode="#current" is used within a stylesheet function. The specification states (and erratum XT.E19 amplifies) that within a function, the current mode is the default (unnamed) mode. This bug is present in 9.2 and all known previous releases. A patch is being raised for the 9.1 and 9.2 branches only.

Discussion

  • Michael Kay

    Michael Kay - 2010-04-12

    Correction: the code works correctly in Saxon 9.1 and previous releases.

     
  • Michael Kay

    Michael Kay - 2010-04-26

    Fixed in 9.2.1.1