[Expat-bugs]
[ expat-Bugs-695407 ] Reserved prefixes and namespace names
SourceForge.net
noreply at sourceforge.net
Fri Feb 28 17:46:57 EST 2003
Bugs item #695407, was opened at 2003-02-28 20:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=695407&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Karl Waclawek (kwaclaw)
Assigned to: Karl Waclawek (kwaclaw)
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"/>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=695407&group_id=10127
More information about the Expat-bugs
mailing list