Click to See Complete Forum and Search --> : How can i import one DTD into another


ksridhar
09-27-2005, 12:08 AM
Hello friends,

I have read some where that one DTD can be imported into another DTD but idont remember how to do it.

My question is suppose we have a DTD say xyz.dtd and i am writing a new DTD say abc.dtd, and lets assume that in abc.dtd i have to declare some of the elements of xyz.dtd, so iwant to import xyz.dtd into abc.dtd.
Can anybody please give me a solution for this.

Thank you,

sridhar.

Charles
09-27-2005, 05:40 AM
<!ENTITY & xyz SYSTEM "xyz.dtd">
&xyz;

ryguillian
10-01-2005, 11:37 AM
If you'd like a good example of 'importing' one DTD into another, you should look at the DTD for XHTML 1.1, as it is mde up of separate modules:

http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd

- Ryan

Charles
10-01-2005, 12:31 PM
My sweet Lord. Don't do that! You'll never recover.

Yes, the 1.1 DTD is made up of modules but it pushes the DTD rules to the limit - and I'm not certain that it even works. I've had much trouble getting it to parse.

ryguillian
10-01-2005, 03:06 PM
Pushes DTD rules to the limit? I don't follow. Might you provide us with some examples? (What parser were you using?)

Charles
10-01-2005, 04:10 PM
Pushes DTD rules to the limit? I don't follow. Might you provide us with some examples? (What parser were you using?)MSXML, Saxon, Xalan.

The weird stuff ti which I refer is about the "Qualified Names".

ryguillian
10-03-2005, 10:55 PM
QNames are by no means unique to the XHTML 1.1 spec. They're used throughout various modern XML applications.