[ expat-Bugs-695407 ] Reserved prefixes and namespace names
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #695407, was opened at 2003-02-28 20:46 Message generated for change (Comment added) made by kwaclaw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=695407&group_id=10127 Category: None >Group: Test Required Status: Open >Resolution: Fixed Priority: 3 Submitted By: Karl Waclawek (kwaclaw) >Assigned to: Fred L. Drake, Jr. (fdrake) Summary: Reserved prefixes and namespace names Initial Comment: Expat does not reject illegal declarations for reserved prefixes and namespace names. From the errata for the Namespaces in XML 1.0 specs: <quote> The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. It may, but need not, be declared, and must not be bound to any other namespace name. No other prefix may be bound to this namespace name. The prefix xmlns is used only to declare namespace bindings and is by definition bound to the namespace name http://www.w3.org/2000/xmlns/. It must not be declared. No other prefix may be bound to this namespace name. </quote> The following four not-well-formed documents are not rejected by Expat: <?xml version="1.0"?> <!-- Reserved prefixes and namespaces: declaring the xml prefix incorrectly --> <foo xmlns:xml="http://example.org/namespace"/> <?xml version="1.0"?> <!-- Reserved prefixes and namespaces: binding another prefix to the xml namespace --> <foo xmlns:yml="http://www.w3.org/XML/1998/namespace"/> <?xml version="1.0"?> <!-- Reserved prefixes and namespaces: declaring the xmlns prefix with its correct URI (illegal) --> <foo xmlns:xmlns="http://www.w3.org/2000/xmlns/"/> <?xml version="1.0"?> <!-- Reserved prefixes and namespaces: declaring the xmlns prefix with an incorrect URI --> <foo xmlns:xmlns="http://example.org/namespace"/> ---------------------------------------------------------------------- >Comment By: Karl Waclawek (kwaclaw) Date: 2004-12-24 13:02 Message: Logged In: YES user_id=290026 Finally fixed in expat.h rev. 1.75 and xmlparse.c rev. 1.142. Fix contributed by Peter van der Beken. Thank you, Peter. We should be very close to passing all test cases in the XML-Test-Suite. Left open for regression test case. Assigned to Fred. ---------------------------------------------------------------------- Comment By: Karl Waclawek (kwaclaw) Date: 2003-03-13 08:26 Message: Logged In: YES user_id=290026 Lowered priority to 3. This bug really doesn't have much impact in practical applications, but fixing it may add noticeable overhead. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=695407&group_id=10127