W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

R: DTDs, multiple

From: stefano debenedetti <debenedetti@e-tree.com>
Date: Sat, 5 Aug 2000 18:55:58 +0200
Message-ID: <00f101bffefe$07cd3320$1a390497@etree.com>
To: <www-dom@w3.org>
try:

<!ENTITY % GinoDtd SYSTEM "gino.dtd">
%GinoDtd;

this will import everything declared inside gino.dtd into the file you write those
two lines in.
Anyway, this won't solve the multiple DOCTYPE issue.

Cheers,

stefano debenedetti
www.e-tree.com
www.webanana.com

----- Original Message -----
From: Michael B <michael.burkert@daimlerchrysler.com>
To: <www-dom@w3.org>
Sent: Friday, August 04, 2000 1:06 PM
Subject: DTDs, multiple


> Hello !
>
> Is it possible to have ONE xml-File, but TWO DTDs ??
>
> XML-File:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE StarFeedback SYSTEM "back01.dtd">
> <StarFeedback>
> ...
> <CSDCall>
>     <CSDReturn>OK
>     </CSDReturn>
> </CSDCall>
>
>
> DTD1 (back01.dtd):
> <!DOCTYPE  StarFeedback[
> <!Element    StarFeedback   (...)>
> ...
> <!Element    CSDCall    (??)>
> ...
> ]>
>
> DTD2 (backCSD.dtd):
> <!DOCTYPE  CSDCall[
> <!Element    CSDCall      (CSDReturn)>
> <!Element    CSDReturn  (#PCDATA)>
> ]>
>
> This will not work: "Cannot have multiple DOCTYPE declarations."
>
> How can I link the two DTDs ?
>
>
Received on Saturday, 5 August 2000 12:56:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT