Re: DTD
Jerry Casiano <[email protected]>
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Message-ID | <CAGw1VoAh7kt1=HmxXYWzFRAzAWzrNaM48tfkw7Cez9mhT8-_Zw@mail.gmail.com> |
I use it to verify that my application is generating valid config files. So yes. At least one person still uses it. ;-) On Fri, Mar 30, 2018, 6:04 PM Lawrence D'Oliveiro <[email protected]> wrote: > On Fri, 30 Mar 2018 18:41:34 +0000, Jerry Casiano wrote: > > > I would consider [the lack of a DTD] a bug if I used Debian. > > Does anybody still use DTDs for anything? They may have made sense with > SGML, but HTML, for example, does so much more with CSS instead. And as > for XML, it seems to me a DTD is neither necessary nor sufficient to > capture the semantics of most real-world applications. > > Fontconfig being a case in point: half of fonts.dtd is comments > explaining what the constructs actually mean. And much of the rest is > essentially content-free syntax like > > <!ELEMENT dir (#PCDATA)> > <!ELEMENT family (#PCDATA)> > <!ELEMENT int (#PCDATA)> > <!ELEMENT double (#PCDATA)> > <!ELEMENT string (#PCDATA)> > <!ELEMENT bool (#PCDATA)> > <!ELEMENT const (#PCDATA)> > > And things like > > <!ELEMENT plus (%expr;)*> > <!ELEMENT minus (%expr;)*> > <!ELEMENT times (%expr;)*> > <!ELEMENT divide (%expr;)*> > <!ELEMENT not (%expr;)> > > convey that these operators are recognized and can take multiple > operands, but nothing more. > _______________________________________________ > Fontconfig mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/fontconfig > _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig