Product: DTDFlatten command-line utility

DTDFlatten is a tool that allows for creating a single ("flat") DTD resulting from processing a DTD that includes multiple external parameter entities. Using such a file may be beneficial from performance reasons, or for debugging problems with parameter entity expansion in DTDs. One example of such an optimization is flattening of big standard DTDs such as DocBook DTD.

DTDFlatten is built on DTD-handling core of Woodstox XML processor.

Current version

Latest version is based on Woodstox version 3.2.9 (built 21-Jul-2009).

You can download:

Note: to compile tools, you also need to download Woodstox (binary) jar and put it under lib/ sub-directory (matching version used to build released package is also included in Subversion repository).

Older version(s) may be available from the Old DTDFlatten home page

Usage

To use DTDFlatten, simply enter something like:

  java -jar dtd-flatten.jar <main-dtd-file>

There are couple of configurable settings; the easiest way to view possibilities is to omit the dtd file, in which case tool displays usage information. The configuration settings allow you to selectively include or exclude parts of DTD that may not be relevant, like comments, empty lines, and conditionally excluded sections.

DTDFlatten tool is licensed under LGPL software license; but since it usually is not redistributed (and usage is free, ie. not limited by LGPL license in any way) the main thing to know is that in layman terms, "Anyone can use DTDFlatten for anything, but there is no warranty whatsoever ('if you break it, you can keep the pieces')".

Feedback (issues, suggestions, questions)

Since DTDFlatten is based on Woodstox Stax XML processor, its user mailing list (user at woodstox.codehaus.org) is usually the best place to ask questions. At this point there is no separate mailing list for discussion regarding DTDFlatten, although one can be added if need arises.


CategoryDtdFlatten

DtdFlattenHome (last edited 2009-07-22 06:06:30 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC