dtdflatten - Flatten an SGML/XML DTD. |
dtdflatten - Flatten an SGML/XML DTD.
dtdflatten [options]
dtdflatten parses a DTD and prints out a flatten/expanded version of it with all parameter entities expanded.
The first non-option-related argument provided on the command-line specifies the file to parse. If no filename is given, then the DTD is read from standard input.
The flatten DTD is printed to standard output unless
the --output
option is specified.
NOTE: Currently, only SGML Open Catalog format is supported. XML Catalog support is not implemented (yet).
Debugging output is sent to standard error.
If no SGML declaration is available, the --xml
,
--namecase-general
, and --namecase-entity
options can
be used.
Note, if <entity-name> matches any portion of a parameter entity, the parameter entity declaration will be preserved.
If --debug
is specified, then this option is automatically
enabled.
dtdparse
See SGML::DTDParse for an overview of the DTDParse package.
Getopt::Long, Text::DelimMatch, XML::Parser
<http://dtdparse.sourceforge.net/>
Originally developed by Norman Walsh, <ndw@nwalsh.com>.
Earl Hood <earl@earlhood.com> picked up support and maintenance.
See SGML::DTDParse for copyright and license information.
dtdflatten - Flatten an SGML/XML DTD. |