[thelist] Multiple doctypes in one file

Hardacker, Andrew Andrew.Hardacker at Compuware.com
Fri Mar 22 14:46:00 CST 2002


Already an addendum:

<snip>
If I use the same DTD and just make my root element for tool level optional
I could declare something like this.
<doctype PAGE "help.dtd"> for the page level
<doctype TOOL "help.dtd"> for the tool level

but I don't know that having the same DTD declared with different root
elements will work either.
</snip>

Brad,
The approach above does work; the dtd doesn't actually know what a root is.
You can specify any element as the root in the doctype declaration and as
long as it's properly defined in the dtd itself, the xml file will validate.


Our internal standard here specifies one root per dtd for clarity of
documentation. And we don't use the DTD in production in order to save a few
cycles.

Andy Hardacker
http://hardacker.com/




The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.




More information about the thelist mailing list