You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2010/09/19 05:23:36 UTC
svn commit: r998586 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
Author: mukulg
Date: Sun Sep 19 03:23:35 2010
New Revision: 998586
URL: http://svn.apache.org/viewvc?rev=998586&view=rev
Log:
i think it's useful to display type information (the name of schema type) within assertion failure message(s), in case assertion failure error format xerces:message is used. this commit makes this improvement.
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=998586&r1=998585&r2=998586&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 Sun Sep 19 03:23:35 2010
@@ -68,7 +68,7 @@ import org.w3c.dom.NodeList;
/**
* Class implementing an XPath interface, for XML Schema 1.1 "assertions"
* evaluation. This class interfaces with the "Eclipse/PsychoPath XPath 2.0"
- * engine for XPath expression evaluation, for XML Schema assertions.
+ * engine for XPath expression evaluations, for XML Schema assertions.
*
* The class here constructs Xerces PSVI enabled DOM trees -- "on which
* PsychoPath XPath engine operates" (for typed XDM instance support) from
@@ -944,10 +944,12 @@ public class XMLAssertPsychopathImpl ext
message = message + ".";
}
if (key.equals("cvc-assertion.4.3.15.3")) {
- message = "Assertion failure (undefined context). " + message;
+ message = "Assertion failed (undefined context) for schema type '"
+ + typeString + "'. " + message;
}
else {
- message = "Assertion failure. " + message;
+ message = "Assertion failed for schema type '" + typeString + "'. "
+ + message;
}
fValidator.reportSchemaError("cvc-assertion.failure",
new Object[] { message, listAssertErrMessage } );
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org