From: Tony Graham <tgraham@me...> - 2013-12-16 10:16:40
On Sun, December 15, 2013 11:06 pm, Michael Kay wrote:
> You are using "integrated extension functions" but the documentation you
> cite concerns "reflexive extension functions". There are no conversions
Yes, that's what I figured, but I was more than willing to be wrong.
The section levels don't make it obvious since "Converting the Result of a
Java Extension Function" comes after, not inside, "Writing reflexive
extension functions in Java".
> applied to the result of an integrated extension function; you need to
> return the correct XDM value directly.
> In fact you're almost there. You're calling
> which returns a DocumentInfo, and DocumentInfo (indirectly) implements
> Sequence, so you can just return this as the result of your function.
Working now, thank you.
> This code could be improved as well:
Thanks again. I was under no illusion that it couldn't be improved.
Tony Graham tgraham@...
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL-FO and XSLT consulting, training and programming
Chair, Print and Page Layout Community Group @ W3C