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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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

Reply via email to