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 <[email protected]> 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 > _______________________________________________ > [email protected] > http://x-query.com/mailman/listinfo/talk _______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
