Project

Profile

Help

ExtensionFunction problem

Added by Anonymous over 14 years ago

Legacy ID: #7998352 Legacy Poster: iLLL (ibessalov)

Hello Michael! Is it possible to have an ExtensionFunction that returns a sequence of more than one item (.NET environment)? I have a function with this declaration: [code]public override XdmSequenceType ResultType(XdmSequenceType[] argumentTypes) { return new XdmSequenceType(XdmAnyItemType.Instance, '*'); }[/code] when this function returns sequence of 0 or 1 items - it works fine, but, when I try to return a sequence of many items - I get an exception 'A sequence of more than one item is not allowed as the first argument of result() (............)' Thank You!


Replies (1)

RE: ExtensionFunction problem - Added by Anonymous over 14 years ago

Legacy ID: #7998373 Legacy Poster: Michael Kay (mhkay)

This is a known bug, see https://sourceforge.net/tracker/?func=detail&aid=2919535&group_id=29872&atid=397617 There's a patch in Subversion if you're intrepid enough to rebuild the product, but otherwise it will become available in the next maintenance release.

    (1-1/1)

    Please register to reply