4 ms·
> I'm also not sold on the whole "HTML-style error-recovery" Having used and written a parser for a similar recoverable localization language (https://projectf
by Ygg2 5y ago
> I'm also not sold on the whole "HTML-style error-recovery"
Having used and written a parser for a similar recoverable localization language (https://projectfluent.org/ https://projectfluent.org/) I'm sold on it.
It makes a lot of things easier. It's kinda like adding trailing comma to lists. It's both boon when writing lists by hand and generating it via code.
> I think DTDs are one of the ugliest things in XML (and also a well-known source of security vulnerabilities), and it is great that XML-SW (unlike XML5) mostly kills them.
Hm, that's strange. I'm pretty sure XML5 killed DTD outright, other than having a doctype definition. Perhaps the spec was outdated a bit.
XML5 had a few big ideas:
- Ending DTD
- Unquoted XML attribs
<elem atr1=value>
- Error recovery / arbitrary nesting which is similar to HTML
<a><b></a></b> // Became <a><b></a> <b/>
- skissane 5y ago> Hm, that's strange. I'm pretty sure XML5 killed DTD outright, other than having a doctype definition. Perhaps the spec was outdated a bit. I'm just going by what is at https://annevankesteren.nl/2007/10/xml5 https://annevankesteren.nl/2007/10/xml5 which gives the impression that <!ENTITY> declarations are still allowed.
- Ygg2 5y agoThere was a full specification that had more details. It didn't parse <!ENTITY> and similar declarations but treated it as just a dumb string.