<div dir="auto">Ah very interesting, thanks Mike. That looks great for named functions.<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">In XQuery I can also put an Annotation on an Inline Function Expr, is there any equivalent in XSLT?</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 13 Jan 2019, 01:24 Michael Kay <<a href="mailto:mike@saxonica.com">mike@saxonica.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The XSLT approach to this is to use extension attributes, for example<br>
<br>
<xsl:function name="f:xyz" acme:use-lazy-evaluation="false">...</xsl:function><br>
<br>
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.<br>
<br>
Michael Kay<br>
Saxonica<br>
<br>
> On 12 Jan 2019, at 14:24, Adam Retter <<a href="mailto:adam.retter@googlemail.com" target="_blank" rel="noreferrer">adam.retter@googlemail.com</a>> wrote:<br>
> <br>
> Does anyone know if there is something similar in XSLT to XQuery 3.0's<br>
> Annotations?<br>
> <br>
> I am developing a set of XPath functions, which produce functions.<br>
> These produced functions can benefit from being treated in a certain<br>
> manner by a processor.<br>
> <br>
> I was thinking of using custom Annotations to label the produced<br>
> functions, so that a processor would have more information about how<br>
> they should be evaluated. Unfortunately I just realised that<br>
> Annotations are defined in the XQuery spec, not the lower XPath spec<br>
> (as I had assumed).<br>
> <br>
> Is there anything equivalent for functions (produced by functions) in XSLT?<br>
> <br>
> p.s. I will crosspost to the mulberry XSLT list as this seems relevant to both.<br>
> <br>
> Thanks Adam.<br>
> -- <br>
> Adam Retter<br>
> <br>
> skype: adam.retter<br>
> tweet: adamretter<br>
> <a href="http://www.adamretter.org.uk" rel="noreferrer noreferrer" target="_blank">http://www.adamretter.org.uk</a><br>
> _______________________________________________<br>
> <a href="mailto:talk@x-query.com" target="_blank" rel="noreferrer">talk@x-query.com</a><br>
> <a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer noreferrer" target="_blank">http://x-query.com/mailman/listinfo/talk</a><br>
<br>
</blockquote></div>