mrglavas 2004/02/15 21:34:38 Modified: java/src/org/apache/xerces/dom AttrImpl.java AttrNSImpl.java Log: Fixing Bug #26960: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26960 Applying (slightly modified) patch from Curt Arnold. Revision Changes Path 1.55 +8 -2 xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java Index: AttrImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- AttrImpl.java 10 Feb 2004 17:25:27 -0000 1.54 +++ AttrImpl.java 16 Feb 2004 05:34:38 -0000 1.55 @@ -2,7 +2,7 @@ * The Apache Software License, Version 1.1 * * - * Copyright (c) 1999-2002 The Apache Software Foundation. All rights + * Copyright (c) 1999-2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -158,6 +158,9 @@ /** Serialization version. */ static final long serialVersionUID = 7277707688218972102L; + + /** DTD namespace. **/ + static final String DTD_URI = "http://www.w3.org/TR/REC-xml"; // // Data @@ -325,6 +328,9 @@ * @see org.apache.xerces.dom3.TypeInfo#getTypeNamespace() */ public String getTypeNamespace() { + if (type != null) { + return DTD_URI; + } return null; } 1.43 +4 -2 xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java Index: AttrNSImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- AttrNSImpl.java 4 Feb 2004 18:28:53 -0000 1.42 +++ AttrNSImpl.java 16 Feb 2004 05:34:38 -0000 1.43 @@ -82,6 +82,7 @@ /** Serialization version. */ static final long serialVersionUID = -781906615369795414L; + static final String xmlnsURI = "http://www.w3.org/2000/xmlns/"; static final String xmlURI = "http://www.w3.org/XML/1998/namespace"; @@ -362,10 +363,11 @@ * @see org.apache.xerces.dom3.TypeInfo#getTypeNamespace() */ public String getTypeNamespace() { - if (type !=null){ + if (type !=null) { if (type instanceof XSSimpleTypeDecl){ return ((XSSimpleTypeDecl)type).getNamespace(); } + return DTD_URI; } return null; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]