You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ve...@apache.org on 2003/11/04 03:34:43 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/util XMLAttributesImpl.java
venu 2003/11/03 18:34:43
Modified: java/src/org/apache/xerces/util XMLAttributesImpl.java
Log:
Description : When attribute is not declared , mark the attribute type to null.
Refer TypeInfo interface DOM L3 core spec.
Dependant files : XMLDTDValidator.java,AbstractDOMParser.java
Revision Changes Path
1.22 +4 -1 xml-xerces/java/src/org/apache/xerces/util/XMLAttributesImpl.java
Index: XMLAttributesImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/util/XMLAttributesImpl.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- XMLAttributesImpl.java 10 Oct 2003 18:25:40 -0000 1.21
+++ XMLAttributesImpl.java 4 Nov 2003 02:34:43 -0000 1.22
@@ -977,6 +977,9 @@
* @return the value passed in or NMTOKEN if it's an enumerated type.
*/
protected String getReportableType(String type) {
+ if(type == null)
+ return type;
+
if (type.indexOf('(') == 0 && type.lastIndexOf(')') == type.length()-1) {
return "NMTOKEN";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org