From: Wolfgang M. M. <wol...@us...> - 2004-08-08 19:03:34
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/util/serializer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv796/src/org/exist/util/serializer Modified Files: DOMStreamer.java Log Message: Fixed wrong handling of default namespaces, introduced by my previous changes. Index: DOMStreamer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/util/serializer/DOMStreamer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** DOMStreamer.java 7 Aug 2004 16:28:02 -0000 1.6 --- DOMStreamer.java 8 Aug 2004 19:03:25 -0000 1.7 *************** *** 155,160 **** for (int i = 0; i < attrs.getLength(); i++) { nextAttr = (Attr) attrs.item(i); - System.out.println("attr = " + nextAttr.getName()); attrName = nextAttr.getName(); if (attrName.equals("xmlns")) { if (nsSupport.getURI("") == null) { --- 155,160 ---- for (int i = 0; i < attrs.getLength(); i++) { nextAttr = (Attr) attrs.item(i); attrName = nextAttr.getName(); + System.out.println("Attr = " + attrName); if (attrName.equals("xmlns")) { if (nsSupport.getURI("") == null) { *************** *** 164,168 **** } } else if (attrName.startsWith("xmlns:")) { - System.out.println("Found " + attrName); prefix = attrName.substring(6); if (nsSupport.getURI(prefix) == null) { --- 164,167 ---- |