Re: [docbook-apps] Tool to query dtd/schema for valid element children|attributes[SOLVED]

From
David Nebauer <>
Date
2005-10-04T09:36:14+00:00
ID
Thread
Re: [docbook-apps] Tool to query dtd/schema for valid element children|attributes[SOLVED]
>>Is there a simple way to 
>>produce a flattened DTD from a modular one using commonly 
>>available tools?
>>
>
>You can use the dtdflatten script in the DTDParse package
>

I'd already tried 'dtdflatten' but it does not seem to like my Debian 
default setup.  Actually, all of the tools in SGML::DTDParse have the 
same reaction regarding the default catalog file:

----------------------------------------------------------------------------------------
$ dtdflatten /usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd
Reading /etc/sgml/catalog...
Don't know how to parse CATALOG keyword: CATALOG
$
----------------------------------------------------------------------------------------

In particular, it complains that the default catalog file contains 
'CATALOG' keywords.  This is unfortunate as _every_ line starts with the 
CATALOG keyword.

Regards,
David.