Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xerces Wiki" for change 
notification.

The "XML_Schema_1.1_Assertions" page has been changed by assertions.
http://wiki.apache.org/xerces/XML_Schema_1.1_Assertions?action=diff&rev1=105&rev2=106

--------------------------------------------------

   1. Error codes, and descriptions:
  Xerces-J flags error messages during assertions processing, as recommended by 
the XML Schema 1.1 specification. Here's the summary of error codes/messages, 
used by Xerces during assertion processing:
   a. '''cvc-assertion.3.13.4.1''' -> Xerces uses this error code, with a 
description like following "test.xml:3:11:cvc-assertion.3.13.4.1: Assertion 
evaluation ('x = 'hello world'') for element 'Example' with type '#anonymous' 
did not succeed.", when any of the assertions evaluate to false.
+  a. '''cvc-assertion.3.13.4.1''' -> Here's an example of error description, 
when an assertion facet on a attribute value, evaluates to false: 
"test.xml:2:18:cvc-assertion.3.13.4.1: Assertion evaluation ('$value eq 2') for 
element 'x (attribute => a)' with type '#anonymous' did not succeed.".
   a. '''cvc-assertion.4.3.15.3''' -> This error code is used, with a 
description like following "test.xml:2:15:cvc-assertion.4.3.15.3: Assertion 
evaluation ('. = 'hello'') for element 'x' with type '#anonymous' did not 
succeed (undefined context).", when an attempt is made to access the XPath 
context (for e.g, with the expression "."), during assertion facet evaluation.
-  a. '''cvc-xpath.3.13.4.2''' -> This error code is used, with a description 
like following "cvc-xpath.3.13.4.2: Assertion XPath expression, ('. === 
'hello'') on the Schema type ('#AnonType_xExample') couldn't compile 
successfully.", when a syntactically wrong XPath expression, is provided for 
assertion evaluations. 
+  a. '''cvc-xpath.3.13.4.2''' -> This error code is used, with a description 
like following "cvc-xpath.3.13.4.2: Assertion XPath expression, ('. === 
'hello'') on the Schema type '#AnonType_xExample' couldn't compile 
successfully.", when a syntactically wrong XPath expression, is provided for 
assertion evaluation. 
  
  
  '''References:'''

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

Reply via email to