3 ms·
You don't need XML for that. HTML can be parsed using SGML precisely and elegantly [1] (if I may say so for a project of mine). If you see value in XML, you re
by tannhaeuser 9y ago
You don't need XML for that. HTML can be parsed using SGML precisely and elegantly [1] (if I may say so for a project of mine).
If you see value in XML, you really should look into XML's big sister SGML. It gives you downward compat with XML, tag inference, type-aware (injection-free) variable and macro expansion, custom Wiki syntaxes (markdown and others), an integrated stylesheet language without new ad-hoc syntax, full HTML 5 parsing with short forms for attributes etc., and more. You might actually like it.
[1]: http://sgmljs.net/blog/blog1701.html http://sgmljs.net/blog/blog1701.html
- pjmlp 9y agoI was a big fan of Docbook, back when SGML was more well known, thanks for the heads up. However this is meaningless if the browsers keep being a document engine, full of workarounds to translate a mix of document tags, coupled with some generic <div> and <span> into some kind of general purpose GUI layout engine. Having to find the proper incantation of CSS3 transforms to portably trigger GUI acceleration is a good example of such hacks. Even if it is yet another hack, webcomponents + shadowdom looked it would be the solution, even if a bit hackish, but it is Chrome only.