[xquery-talk] XQuery Function Annotations... and XSLT

Adam Retter adam.retter at googlemail.com
Sat Jan 12 09:33:37 PST 2019


Ah very interesting, thanks Mike. That looks great for named functions.


In XQuery I can also put an Annotation on an Inline Function Expr, is there
any equivalent in XSLT?

On Sun, 13 Jan 2019, 01:24 Michael Kay <mike at saxonica.com wrote:

> The XSLT approach to this is to use extension attributes, for example
>
> <xsl:function name="f:xyz"
> acme:use-lazy-evaluation="false">...</xsl:function>
>
> There's nothing that says such attributes are carried around as properties
> of the resulting function object, but there's also nothing that says they
> aren't.
>
> Michael Kay
> Saxonica
>
> > On 12 Jan 2019, at 14:24, Adam Retter <adam.retter at googlemail.com>
> wrote:
> >
> > Does anyone know if there is something similar in XSLT to XQuery 3.0's
> > Annotations?
> >
> > I am developing a set of XPath functions, which produce functions.
> > These produced functions can benefit from being treated in a certain
> > manner by a processor.
> >
> > I was thinking of using custom Annotations to label the produced
> > functions, so that a processor would have more information about how
> > they should be evaluated. Unfortunately I just realised that
> > Annotations are defined in the XQuery spec, not the lower XPath spec
> > (as I had assumed).
> >
> > Is there anything equivalent for functions (produced by functions) in
> XSLT?
> >
> > p.s. I will crosspost to the mulberry XSLT list as this seems relevant
> to both.
> >
> > Thanks Adam.
> > --
> > Adam Retter
> >
> > skype: adam.retter
> > tweet: adamretter
> > http://www.adamretter.org.uk
> > _______________________________________________
> > talk at x-query.com
> > http://x-query.com/mailman/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20190113/bf53192e/attachment.html>


More information about the talk mailing list