Wednesday, July 21, 2004

Flattening DTDs

As with most software, what you get out of the box is never exactly what you want, so you have to tweak the preferences, settings and if you're a hacker, maybe even the code.

With DTDs, it is also the same. Thankfully, Norm Walsh designed DocBook with modularity and customization layers in mind. The problem is that many XML editors don't like DTDs with external parameter entities or entity references, and want them flattened.

Here are a few DTD flatteners you can try, should you need to create your own customization layers, or need a flattened DTD:

Hopefully this will give you some options. I've had the best luck with the dtdflatten and programs on Solaris.

See also: