|
From: <pe...@us...> - 2004-03-03 00:02:52
|
Update of /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/c14 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5337/src/java/org/neuclear/xml/c14 Modified Files: Canonicalizer.java Log Message: minor changes. receiver didnt get checked in by idea in recent refactoring. Index: Canonicalizer.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/c14/Canonicalizer.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Canonicalizer.java 2 Mar 2004 23:30:43 -0000 1.10 --- Canonicalizer.java 2 Mar 2004 23:50:45 -0000 1.11 *************** *** 8,11 **** --- 8,15 ---- * $Id$ * $Log$ + * Revision 1.11 2004/03/02 23:50:45 pelle + * minor changes. + * receiver didnt get checked in by idea in recent refactoring. + * * Revision 1.10 2004/03/02 23:30:43 pelle * Renamed SignatureInfo to SignedInfo as that is the name of the Element. *************** *** 135,139 **** import org.dom4j.*; import org.dom4j.tree.NamespaceStack; - import org.neuclear.commons.Utility; import org.neuclear.xml.ElementProxy; import org.neuclear.xml.XMLTools; --- 139,142 ---- *************** *** 348,356 **** namespaceStack.push(ns); writeNamespace(ns, sorted); ! } else if (ns.getURI() != null && ! ns.getURI().equals("") && ! element.getParent() != null && ! element.getParent().getNamespaceURI() != null ! && !element.getParent().getNamespaceURI().equals("") ) { writeNamespace(ns, sorted); --- 351,366 ---- namespaceStack.push(ns); writeNamespace(ns, sorted); ! // } else if (ns.getURI() != null && ! // ns.getURI().equals("") && ! // element.getParent() != null && ! // element.getParent().getNamespaceURI() != null ! // && !element.getParent().getNamespaceURI().equals("") ! } else if ( ! (element.getParent() == null) ! || ( ! !ns.getURI().equals(element.getParent().getNamespaceURI()) ! && ns.getPrefix().equals(element.getParent().getNamespacePrefix())///TODO where the hell and I'm going with this ! ! ) ) { writeNamespace(ns, sorted); *************** *** 444,449 **** // TODO This breaks example 3 from the Merlin Eight, but I'm not sure how to go about fixing it, due to DOM4J's // nondifferentiation between <test/> and <test xmlns=""/> ! if (Utility.isEmpty(prefix) && Utility.isEmpty(namespace.getURI())) ! return; writer.write(" xmlns"); if (prefix != null && prefix.length() > 0) { --- 454,459 ---- // TODO This breaks example 3 from the Merlin Eight, but I'm not sure how to go about fixing it, due to DOM4J's // nondifferentiation between <test/> and <test xmlns=""/> ! // if (Utility.isEmpty(prefix) && Utility.isEmpty(namespace.getURI())) ! // return; writer.write(" xmlns"); if (prefix != null && prefix.length() > 0) { |