Author: mukulg
Date: Tue Sep 28 00:45:51 2010
New Revision: 1001982

URL: http://svn.apache.org/viewvc?rev=1001982&view=rev
Log:
removing debug schema 1.1 assert calls from the code-base, since I don't have 
any assertion bugs to solve at the moment. debug assert calls are causing extra 
computations while xml instance validation. i'll probably use this feature 
locally at my end, in case I need to debug xerces schema 1.1 assertions 
implementation. apologies for commits (if anyone found this inconvenient) to 
add & remove assert debug calls.

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java?rev=1001982&r1=1001981&r2=1001982&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
 Tue Sep 28 00:45:51 2010
@@ -249,11 +249,6 @@ public class XMLAssertPsychopathImpl ext
                  Boolean atomicValueValidity = (Boolean) augs.getItem
                                                  ("ATOMIC_VALUE_VALIDITY");
                  if (atomicValueValidity.booleanValue()) {                    
-                    // an optional debugging call                    
-                    if ("true".equals(fAssertDebug) && assertions.size() > 0) {
-                       debugAsserts();
-                    }
-                    
                     // depending on simple content's validity status from
                     // XMLSchemaValidator, process XML schema assertions.
                     processAllAssertionsOnElement(element, itemType, 
@@ -269,32 +264,6 @@ public class XMLAssertPsychopathImpl ext
         }
         
     } // endElement
-
-    
-    /*
-     * Debug assertion calls. For example, serialize assertion DOM trees. 
-     */
-    private void debugAsserts() {
-        
-        DOMImplementationRegistry registry = null;
-        try {
-            registry = DOMImplementationRegistry.newInstance();
-        } catch (Exception ex) {
-            ex.printStackTrace();
-        }
-        DOMImplementationLS impl =  (DOMImplementationLS) registry.
-                                                  getDOMImplementation("LS");
-        LSSerializer writer = impl.createLSSerializer();
-        writer.getDomConfig().setParameter("format-pretty-print", 
-                                                               Boolean.TRUE);  
                
-        LSOutput output = impl.createLSOutput();
-        output.setEncoding("UTF-8");
-        output.setByteStream(System.out);
-        System.out.println("<- assert DOM Tree ->");
-        writer.write(fCurrentAssertDomNode, output);
-        System.out.println("<--->");
-        
-    } // debugAsserts
     
 
     /*



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to