Re: [xml] internal and external dtd

On Tue, Mar 05, 2002 at 10:30:18AM +0100, Uwe Fechner wrote:

is it possible, that a document has an internal and an
external dtd at the same time?

  An XML document DTD can consist of both an internal subset and 
an external subset. This is definitely possible, in the tests suite
of libxml2 test/valid/REC-xml-19980210.xml show this:

<?xml version='1.0' encoding='ISO-8859-1' standalone='no'?>
<!DOCTYPE spec SYSTEM "dtds/spec.dtd" [
<!ENTITY XML.version "1.0">
<!ENTITY "10 February 1998">
<!ENTITY "19980210">

  dtds/spec.dtd defines the external subset. The [ ... ]>
defines the internal subset. The DTD of this document is the
merge of the internal and external subsets.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]