Subject: Re: [xsl] Re: Over the years, have you created an XSLT library? From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 5 Mar 2025 16:37:02 -0000 |
> 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=6 334d48f9565f78eba90b212e461243b - "Laziness in XPath. The trouble with fn:fold-right", https://medium.com/@dimitrenovatchev/laziness-in-xpath-the-trouble-with-fn -fold-right-cbb1cc654d1c, friends link: https://medium.com/@dimitrenovatchev/laziness-in-xpath-the-trouble-with-fn -fold-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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Over the years, have , Roger L Costello cos | Thread | Re: [xsl] Re: Over the years, have , Dave Pawson dave.paw |
Re: [xsl] Re: Over the years, have , Roger L Costello cos | Date | Re: [xsl] Re: Over the years, have , Dave Pawson dave.paw |
Month |