You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by nd...@apache.org on 2005/06/20 18:49:57 UTC
cvs commit: xml-xerces/java/tests/dom/dom3 Test.java
nddelima 2005/06/20 09:49:57
Modified: java/tests/dom/dom3 Test.java
Log:
Modifying dom.dom3.Test to set the schema-type on the DOMNormalizer to XML Schema"http://www.w3.org/2001/XMLSchema".
Revision Changes Path
1.21 +4 -2 xml-xerces/java/tests/dom/dom3/Test.java
Index: Test.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/tests/dom/dom3/Test.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Test.java 9 May 2005 01:36:02 -0000 1.20
+++ Test.java 20 Jun 2005 16:49:57 -0000 1.21
@@ -176,9 +176,10 @@
config = core.getDomConfig();
config.setParameter("error-handler",errorHandler);
config.setParameter("validate", Boolean.TRUE);
+ config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema");
core.normalizeDocument();
Assertion.verify(errorCounter == 3, "3 errors should be reported");
-
+
errorCounter = 0;
config.setParameter("validate", Boolean.FALSE);
config.setParameter("comments", Boolean.FALSE);
@@ -229,6 +230,7 @@
config.setParameter("psvi", Boolean.TRUE);
config.setParameter("error-handler",errorHandler);
config.setParameter("validate", Boolean.TRUE);
+ config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema");
core.normalizeDocument();
Assertion.verify(errorCounter == 0, "No errors should be reported");
Assertion.verify(((ElementPSVI)e1).getElementDeclaration().getName().equals("person"), "e1 decl");
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org