3 ms·
Hm, I’m interested, but isn’t SMGL practically a different language? Apart from syntax, are those concepts translatable to HTML? I mean, can I use it to write w
by john-aj 7y ago
Hm, I’m interested, but isn’t SMGL practically a different language? Apart from syntax, are those concepts translatable to HTML? I mean, can I use it to write web pages?
- tannhaeuser 7y agoSGML is a markup meta-language, meaning it takes a vocabulary (a Document Type Declaration grammar for HTML) as input, along with the actual HTML source markup. See [1] for a HTML5 DTD which has all the necessary declarations for HTML's element omission/inference rules, enumerated attributes, etc. Apart from element inference and other markup shortforms, this will be familiar if you know XML (which is a subset/profile of SGML), but SGML has a number of additional concepts for content authoring/page composition such as link processes (an additional type of declaration set that can define an automaton for assigning attribute values based on context, and can be pipelined to produce "views" of documents such as a table of content or nav) and short references (which are element-context specific rules for replacing custom text sequences into other text or markup tags). My SGML implementation also has templating which is an additional form of parametric entity inclusion based on concepts from HyTime, without adding any new syntax to SGML. As to writing practical web pages, I'm working on it, ;) The pages/blog you see on sgmljs.net are completely produced by SGML. [1]: http://sgmljs.net/blog/blog1701.html http://sgmljs.net/blog/blog1701.html