You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/09/06 16:39:47 UTC

[DO NOT REPLY: Bug 3461] New: Xerces does not validate namespace attributes

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3461

*** shadow/3461	Thu Sep  6 07:39:47 2001
--- shadow/3461.tmp.21990	Thu Sep  6 07:39:47 2001
***************
*** 0 ****
--- 1,35 ----
+ +============================================================================+
+ | Xerces does not validate namespace attributes                              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3461                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4.3                   |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: DTD                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: elharo@metalab.unc.edu                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The following document is not valid acording to XML 1.0. The xmlns attribute is
+ not properly declared. However, Xerces-J incorrectly reports it as valid. As
+ near as I can tell for the last several releases Xerces-J has not validated
+ xmlns and xmlns:prefix attributes. This is correct behavior for schemas but not
+ for DTDs. In order to be DTD-valid, all namespace declaration attributes used in
+ the document must be declared. They do not get any special exemptions from the
+ rules of XML 1.0:
+ 
+ <?xml version="1.0"?>
+ <!DOCTYPE test [
+   <!ELEMENT test (#PCDATA)>
+ ]>
+ <test xmlns="http://www.ibiblio.org/xml/">
+   content
+ </test>
+ 
+ The example here just uses an xmlns attribute on the root element, but I've
+ noted this behavior with many different kinds of xmlns and xmlns:prefix
+ attributes in different places.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org