From: William Kunkel (wkunkel@opteway.com)
Date: Wed Mar 29 2000 - 05:17:43 EST
Package: libxml
Version: 1.8.4 & 1.8.7
Hi,
I have a problem with the declaration of an external DTD and namespace.
For the libxml the next sample is valid:
test.xml -----------------------------------------------------
<?xml version="1.0" standalone="no"?>
<!DOCTYPE ROOT SYSTEM "test.dtd">
<prefix:ROOT xmlns:prefix="http://www.URL.com/xml/1.0"/>
test.dtd -----------------------------------------------------
<!ELEMENT ROOT EMPTY>
<!ATTLIST ROOT
xmlns:prefix CDATA #FIXED 'http://www.URL.com/xml/1.0'>
But on the other hand, if I use the XML library (Java) provides by SUN,
the test.xml becomes :
test.xml -----------------------------------------------------
<?xml version="1.0" standalone="no"?>
<!DOCTYPE prefix:ROOT SYSTEM "test.dtd">
<prefix:ROOT xmlns:prefix="http://www.URL.com/xml/1.0"/>
The SUN library has added a prefix namespace in the DOCTYPE declaration.
In this case, the XML Document is not valid for the libxml :
"Not valid: root and DtD name do not match 'ROOT' and 'prefix:ROOT'"
In the XML W3C Recommemdation document "REC-xml-19980210", the name in
the DOCTYPE
declaration must match the name of the root element.
But in the REC-xml-names-19990114 document this name is a qualified name
!!!
What is the good definiton ?
Regards,
=============================================================
William KUNKEL, Software Development Engineer
opt[e]way S.A., BP. 37, 80 route des Lucioles, Immeuble Delta
06901 Sophia Antipolis Cedex, FRANCE
Ph: +33493956651, Fx: +33493956652, http://www.opteway.com
---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:09 EDT