Menu

#1024 Integrated extension functions on .NET: SequenceType problem

v9.2
closed
.NET API (34)
5
2012-10-08
2009-12-22
Michael Kay
No

When integrated extension functions are written using the .NET API (Saxon.Api.ExtensionFunctionDefinition) the occurrence indicators in the SequenceType object are handled incorrectly when translating to the Java representation. In consequence, all functions are treated as if the required type of the result has a cardinality of "exactly one". A patch will be committed to Subversion.

Discussion

  • Michael Kay

    Michael Kay - 2009-12-22

    In the course of testing this patch, a further problem was found: when the statically-inferred type of one of the arguments to an extension function is empty-sequence(), the attempt to translate this into an instance of Saxon.Api.SequenceType fails. A further patch will add a representation of this sequence type (using any item type, and the occurrence indicator 'º' (xBA).

     
  • Michael Kay

    Michael Kay - 2010-01-27

    Fixed in 9.2.0.5