3 ms·
Having used XSLT professionally in the early 2000s I think it was that most developers found it hard to reason about due to the recursive nature of the language
by christkv 5y ago
Having used XSLT professionally in the early 2000s I think it was that most developers found it hard to reason about due to the recursive nature of the language.
- Devasta 5y agoAbsolutely, so many tried to go about it procedurally and fought the language rather than adapt to its way of thinking. Once you understand apply-templates though, it becomes much easier.
- spiralx 5y agoFor me it was understanding the differences between creating output by digging down from a root or by transforming a document by matching parts of it and letting the default rules handle the rest. Which is the basis of my stylesheet that turns an HTML file into its own formatted and highlighted source code: https://gist.github.com/spiralx/dcb7e5fa4e5dedd800e292848ed22aa9 https://gist.github.com/spiralx/dcb7e5fa4e5dedd800e292848ed2...