Subject: Re: [xsl] Re: Over the years, have you created an XSLT library? From: "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 5 Mar 2025 16:41:24 -0000 |
(Most likely) Dimitre has more 'library' entries than any of us Roger. regards On Wed, 5 Mar 2025 at 16:37, Dimitre Novatchev dnovatchev@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Would you give an example of an XPath function that solves a common task > and you would put in a library? > > All of the FXSL functions are such examples. > > As for new functions, my recent Medium articles may give us an idea: > > > - "Generators in Xpath", > https://medium.com/@dimitrenovatchev/generators-in-xpath-987a609cfbd5, > and friendly link for non-members of Medium.com: > https://medium.com/@dimitrenovatchev/generators-in-xpath-987a609cfbd5?sk=6334 d48f9565f78eba90b212e461243b > - "Laziness in XPath. The trouble with fn:fold-right", > https://medium.com/@dimitrenovatchev/laziness-in-xpath-the-trouble-with-fn-fo ld-right-cbb1cc654d1c, > friends link: > https://medium.com/@dimitrenovatchev/laziness-in-xpath-the-trouble-with-fn-fo ld-right-cbb1cc654d1c?sk=872244cf80bfcb52d67bcb8b359478ff > > Other functions/features that I have proposed for inclusion in XPath 4 are: > > - Decorators, https://github.com/qt4cg/qtspecs/issues/106 > - Sets, https://github.com/qt4cg/qtspecs/issues/34 > - Extending maps to allow as keys not only atomic values, thus making > possible implementing sets and caching of function-calls results, > https://github.com/qt4cg/qtspecs/issues/119 > > These may or maynot be included in XPath 4 (and the Functions and > Operators standard specification), and if they don't get included there, > these would be the primary candidates to be provided in a 3-rd party > library. > > More generally, as I said before, any established and used in best > practices Design Pattern. > > Thanks, > Dimitre. > > > On Wed, Mar 5, 2025 at 2:46b/AM Roger L Costello costello@xxxxxxxxx < > xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > >> Dimitre wrote: >> >> > If I were lucky enough to have my daily work in an XPath-based >> > programming environment, I would definitely develop libraries >> > of functions that are useful for solving common tasks >> >> Would you give an example of an XPath function that solves a common task >> and you would put in a library? >> >> /Roger >> >> >> >> > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2607481> (by > email <>) > -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Over the years, have , Dimitre Novatchev dn | Thread | Re: [xsl] Over the years, have you , Michael Kay michaelk |
Re: [xsl] Re: Over the years, have , Dimitre Novatchev dn | Date | Re: [xsl] Over the years, have you , Michael Kay michaelk |
Month |