Re: [xml] internal and external dtd



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

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 doc.date "10 February 1998">
<!ENTITY iso6.doc.date "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

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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