Again I need to build some XSLT to turn the generated XML into (and not just HTML creation).
This time I have a huge deja vu. I have to solve the main problems again, for example:
- how to convert characters to valid html entity links
- How to save spaces / carriage returns when converting to html
- how to convert to HTML, not xhtml
- how to convert dates from an XML format to a presentable format
- how to break lines with substring
That is all that I decided many times before. But every time I return to XSLT, I have to start from scratch, each time inventing a wheel.
If it were a programming language, I would have a library of canned functions and procedures that I can call. I would have routines for performing frequently repeated tasks. I would inherit from a base class that already implements ugly patterns.
Is there any way in XSLT to grow, expand and improve the ecosystem with canned code?
source share