ncbi / DtdAnalyzer

Other
34 stars 11 forks source link

Include the title of the DTD in the output #1

Closed Klortho closed 11 years ago

Klortho commented 12 years ago

The title of the DTD should be included in the output. The title can be passed into the script as a command-line option. Maybe a future enhancement would be to allow the title to be specified in a structured comment field within the DTD itself.

Klortho commented 11 years ago

Since we're no longer requiring the "!dtd" flag for the top-level structured comment, we can put the title there, e.g.

<!--~~ My Very Special DTD
...
~~-->
Klortho commented 11 years ago

As I mentioned in my commit comment, you can now give the title in one of two ways: either in the structured comment at the top of the main DTD module, as described in a couple of comments above, or as the -t/--title command-line argument. The command-line argument overrides anything in the DTD structured comment.