Bug 1917 - DTD validator does not check namespace attributes
DTD validator does not check namespace attributes
Status: NEW
Product: Xerces-J
Classification: Unclassified
Component: Core
1.4
PC All
: P1 major
: ---
Assigned To: Xerces-J Developers Mailing List
:
: 3461 4558 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2001-05-27 12:04 UTC by elharo
Modified: 2005-03-20 17:06 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description elharo 2001-05-27 12:04:12 UTC
Starting in Xerces-J 1.4 (possibly earlier but I just noticed it) the
sax.SAXCOunt validator ignores all attributes used to declare namespaces. e.g.
it thinks that this document is valid:

<!DOCTYPE test [
  <!ELEMENT test (#PCDATA)>
]>
<test xmlns="http://www.example.com/">
  Hello
</test>


It also seems to be ignoring schema location attributes so that this doucment is
DTD valid:

<!DOCTYPE test [
  <!ELEMENT test (#PCDATA)>
]>
<test 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.com/">
  Hello
</test>

dom.DOMCount has the same problem
Comment 1 Henry Zongaro 2001-11-01 06:46:19 UTC
*** Bug 4558 has been marked as a duplicate of this bug. ***
Comment 2 Henry Zongaro 2001-11-01 07:53:46 UTC
*** Bug 3461 has been marked as a duplicate of this bug. ***