In article <41*********************@newsread2.arcor-online.net>,
Martin Honnen <Ma***********@gmx.de> wrote:
% > I have a DTD for my document but want to include the XHTML DTD as well to
% > allow these extra tags. Can I do this and if so, how?
%
% DTDs are very restricted when it comes to have XML with elements from
% different namespaces while a W3C schema is able to model such documents
% well by having a schema for each targetNamespace and using <xs:import>
% to import one schema into the other.
It's not too difficult to combine DTDs. In this case:
<!ENTITY % xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
%xhtml;
The issue isn't even with namespaces -- it's with namespace prefixes. In
this case, you mustn't give the HTML elements a namespace prefix, and
you must declare the default namespace prefix like this
xmlns='http://www.w3.org/1999/xhtml'
.. If the XHTML DTD were written to support modularity, you would be able
to specify what the prefix is, but you wouldn't be able to vary it in
instances of your document.
--
Patrick TJ McPhee
East York Canada
pt**@interlog.com