Subject: [xsl] Re: Over the years, have you created an XSLT library? From: "Lizzi, Vincent vincent.lizzi@xxxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 5 Mar 2025 23:31:40 -0000 |
Hi folks, An XSLT "library" can be useful when working with standardized (or substantially similar) formats across different projects. For example, I have written a set of XSLTs for transformations between different versions of JATS which is named jats_from_jats. When I need to produce a new JATS output based on JATS input, I create an XSLT that imports jats_from_jats and then write templates for the parts that need to be customized. When a new version of JATS is released from NISO, I add XSLTs to jats_from_jats and all XSLTs that import jats_from_jats can benefit. Which reminds me, there was a discussion on this list (in 2024?) about how xsl:next-match invokes the next matching template but does not pass along parameters unless the parameters are defined as tunneling or the parameters are explicitly coded using xsl:with-param. The fact that xsl:next-match does not pass along all parameters automatically can be a gotcha and limits how xsl:next-match can be used when writing local templates to customize the behavior of imported XSLT, particularly in situations where parameters are defined in an imported XSLT and can't be easily changed to tunneling. Seeing as XSLT 4.0 is in development now, is it possible to consider adding an option to xsl:next-match that could enable passing along all parameters? This option might take the form of a new optional attribute on xsl:next-match named with-all-params that takes a yes/no (or Boolean) value and defaults to no (false). If this suggestion seems worthwhile, what would be the correct way to submit this suggestion for consideration? Best regards, Vincent _____________________________________________ Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group vincent.lizzi@xxxxxxxxxxxxxxxxxxxx<mailto:vincent.lizzi@xxxxxxxxxxxxxxxxxxxx> Information Classification: General From: Roger L Costello costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, March 4, 2025 6:18 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Over the years, have you created an XSLT library? Hi Folks, Over the years, as you've written many XSLT programs, have you created a library of user-defined functions? If yes, then I have two questions for you: 1. What functions in your library do you find yourself using most often? 2. As your library gets richer and richer, do you find that it takes you less and less time to write new XSLT programs? /Roger
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Over the years, have you , Dimitre Novatchev dn | Thread | Re: [xsl] Re: Over the years, have , Martin Honnen martin |
Re: [xsl] Re: Over the years, have , Liam R. E. Quin liam | Date | Re: [xsl] Re: Over the years, have , Martin Honnen martin |
Month |