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 2002/12/20 20:01:22 UTC

DO NOT REPLY [Bug 15584] New: - getType(String name) does not return NMTOKEN for enumerated attribute

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=15584>.
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=15584

getType(String name) does not return NMTOKEN for enumerated attribute

           Summary: getType(String name) does not return NMTOKEN for
                    enumerated attribute
           Product: Xerces2-J
           Version: 2.2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mglavass@ca.ibm.com


SAX1 AttributeList and SAX2 Attributes require that for "For an enumerated 
attribute that is not a notation, the parser will report the type 
as "NMTOKEN"." If an attribute has been declared as an enumeration getType
(String name) for both SAX1 and SAX2 will return the enumeration instead of 
NMTOKEN. 

SAX1 Reference:
http://www.saxproject.org/apidoc/org/xml/sax/AttributeList.html#getType(int)
http://www.saxproject.org/apidoc/org/xml/sax/AttributeList.html#getType
(java.lang.String)

SAX2 Reference:
http://www.saxproject.org/apidoc/org/xml/sax/Attributes.html#getType(int)
http://www.saxproject.org/apidoc/org/xml/sax/Attributes.html#getType
(java.lang.String)

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