4 ms·
Absolutely, 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 tho
by Devasta 5y ago
Absolutely, 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...