Author: mukulg
Date: Mon Oct 28 07:42:46 2019
New Revision: 1869066
URL: http://svn.apache.org/viewvc?rev=1869066&view=rev
Log:
committing a minor improvement to xsd validation error message on the trunk.
this was already available on the xsd 1.1 branch.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties?rev=1869066&r1=1869065&r2=1869066&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
(original)
+++
xerces/java/trunk/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
Mon Oct 28 07:42:46 2019
@@ -40,7 +40,8 @@
KeyMatchesNillable = cvc-identity-constraint.4.2.3: Element \"{0}\"
has the key \"{1}\" which matches an element which has nillable set to true.
KeyNotEnoughValues = cvc-identity-constraint.4.2.1.b: Not enough
values specified for <key name=\"{1}\"> identity constraint specified for
element \"{0}\".
KeyNotFound = cvc-identity-constraint.4.3: Key ''{0}'' with value
''{1}'' not found for identity constraint of element ''{2}''.
- KeyRefOutOfScope = Identity Constraint error: identity constraint
\"{0}\" has a keyref which refers to a key or unique that is out of scope.
+ ## KeyRefOutOfScope = Identity Constraint error: identity constraint
\"{0}\" has a keyref which refers to a key or unique that is out of scope.
+ KeyRefOutOfScope = Identity Constraint error: the keyref identity
constraint \"{0}\" refers to a key or unique that is out of scope.
KeyRefReferNotFound = Key reference declaration \"{0}\" refers to
unknown key with name \"{1}\".
UnknownField = Internal identity constraint error; unknown field
\"{0}\" for identity constraint \"{2}\" specified for element \"{1}\".
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=1869066&r1=1869065&r2=1869066&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Mon
Oct 28 07:42:46 2019
@@ -4248,7 +4248,7 @@ public class XMLSchemaValidator
if (fKeyValueStore == null) {
// report error
String code = "KeyRefOutOfScope";
- String value = fIdentityConstraint.toString();
+ String value = fIdentityConstraint.getName();
reportSchemaError(code, new Object[] { value });
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]