With respect, I don't share that negative outlook wrt markup languages. It might not be the vehicle it used to be around 2000 to bring business, investors, and prestigious academic publications, if that's what you mean. But then XML never had a good case for most of the uses it was proposed for during that time, such as service payloads, serialization of component models, config languages, and even programming languages (with exceptions, of course). The point Mukul brought up is a good one (in a negative sense), since a Maven pom.xml doesn't make use of mixed content, arguably an indicator for SGML/XML adequateness. A pom.xml doesn't even allow general entities, relying on its own import/derivation mechanism instead. Thus it's clearly incidental use of XML, and I believe the Maven developers said as much when they were venturing into allowing alternative forms of serializing a POM ten or more years ago, which however never came to life since the Maven ecosystem basically stagnated since (and thankfully, the Maven devs stopped refactoring when they figured they couldn't get the kind of manpower behind it). Another case in point in the Java ecosystem is the demise of XML configs in Spring and Jakarta EE (née JEE née J2EE) in favor of annotations. The only use case for SGML/XML is, and always has been text document representation. And as shown by the reactions on HN is as relevant as it ever was,(once again, apologies Rick; didn't expect this to make it to the front page). There was another post yesterday advocating for the use of PDFs (!) on the Web, the point being self-contained docs rather than PDF per se. And there's very much a sense that the Web has gone too far, with browsers ceasing and so-called web standards only pulling up the ladder such that no browser can be developed from scratch ever again due to sheer complexity. XML won't go away anytime soon; there's simply no multiparty ecosystem, academic discourse/canon, or other broad consent around anymore that could deliver standards such as POSIX, SQL, and SGML/XML. And no, XML wasn't meeting its goals well for the Web; if it were, we don't need to have this discussion and browsers would use XHTML. That's no problem, though, as XML's big beautiful sister SGML fills the gap with support for what's actually needed for authoring on the Web, such as support for parsing HTML, idiomatic shortforms, markdown, typesafe/HTML-aware templating, and all the other things left out from the XML subset of SGML. XML will continue, however, to be a long-term archival and robust and widely supported backend format, and as the format an SGML processor produces as canonical output markup. In fact, now is the time to position XML/SGML as the language for an offline/document-oriented/less-invasive web. Am 20.07.2021 um 08:44 schrieb Rick Jelliffe <rjelliffe@allette.com.au>:
|