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 2003/03/27 22:32:14 UTC
DO NOT REPLY [Bug 18429] New: -
XML 1.1 and DTD - throws NPE
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18429>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18429
XML 1.1 and DTD - throws NPE
Summary: XML 1.1 and DTD - throws NPE
Product: Xerces2-J
Version: 2.3.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: DTD
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: nmehrega@ca.ibm.com
CC: nddelima@ca.ibm.com
The following two XML 1.1 examples cause Xerces-J to throw a
NullPointerException. Both of these files use internal DTDs.
=================== Example 1 ===================
<?xml version="1.1"?>
<!-- validity constraint check for Production 56(Positive Test)-->
<!DOCTYPE test
[
<!ELEMENT test ANY>
<!ELEMENT nametoken EMPTY>
<!ATTLIST nametoken thistoken NMTOKEN #IMPLIED>
]>
<test>
<nametoken thistoken = "x:image"></nametoken>
In an attribute declaration, values of type NMTOKEN match the Nmtoken production
</test>
=================== Example 2 ===================
<?xml version='1.1' standalone='yes'?>
<!DOCTYPE attributes [
<!ELEMENT attributes EMPTY>
<!ATTLIST attributes
token (a|b|c) "a"
notation (nonce|foo|bar) #IMPLIED
nmtoken NMTOKEN #IMPLIED
nmtokens NMTOKENS #IMPLIED
id ID #IMPLIED
>
<!ENTITY internal " internal&number; ">
<!ENTITY number "42">
<!NOTATION nonce SYSTEM "file:/dev/null">
<!NOTATION foo PUBLIC "-//public id//foo" "file:/dev/null">
<!NOTATION bar SYSTEM "file:/dev/tty">
<!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console"
NDATA nonce>
<!ENTITY unparsed-2 SYSTEM "scheme://host/data"
NDATA foo>
]>
<attributes
notation = " nonce "
nmtoken = " this-gets-normalized "
nmtokens = " this
also gets normalized "
id = " &internal; "
/>
=================== End ===================
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org