Subject: Re: [xsl] XQuery Function Annotations... and XSLT From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 12 Jan 2019 19:51:18 -0000 |
I am not familiar with XQuery annotations, but in case one needs to have XPath functions together with other data that is relevant to them, one way (very schematic -- can further be refined) is to have: map { 'Func1Descriptor' : map { 'annotation': someAnnotation, 'function': theFunction }, 'Func2Descriptor' : map { 'annotation': someAnnotation, 'function': theFunction }, . . . . . . . . . . . } Or one can even make the function be only accessible via the annotation -- which in this case will itself be a map, one of whose entries' value will be the function. map { 'Func1Descriptor' : map { 'annotation': map { 'meta':someAnnotationMatter, 'function': theFunction } }, 'Func2Descriptor' : map { 'annotation': map { 'meta':someAnnotationMatter, 'function': theFunction } }, . . . . . . . . . . . } Cheers, Dimitre On Sat, Jan 12, 2019 at 6:25 AM Adam Retter adam.retter@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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 x-query/talk list as this seems relevant to both. > > Thanks Adam. > -- > Adam Retter > > skype: adam.retter > tweet: adamretter > http://www.adamretter.org.uk > -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- To avoid situations in which you might make mistakes may be the biggest mistake of all ------------------------------------ Quality means doing it right when no one is looking. ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play ------------------------------------- To achieve the impossible dream, try going to sleep. ------------------------------------- Facts do not cease to exist because they are ignored. ------------------------------------- Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :) ------------------------------------- Sanity is madness put to good use. ------------------------------------- I finally figured out the only reason to be alive is to enjoy it.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XQuery Function Annotatio, Adam Retter adam.ret | Thread | Re: [xsl] XQuery Function Annotatio, Liam R. E. Quin liam |
Re: [xsl] XQuery Function Annotatio, Adam Retter adam.ret | Date | Re: [xsl] XQuery Function Annotatio, Liam R. E. Quin liam |
Month |