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: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                       |
+ |      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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to