Dear Wiki user,

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

The following page has been changed by assertions:
http://wiki.apache.org/xerces/XML_Schema_1%2e1_Assertions

------------------------------------------------------------------------------
  
  '''Run-time notes'''
  
- By default, the Xerces-J Schema processor would select the PsychoPath engine 
for XPath 2.0 processing. Xerces-J has a provision for the user, to select 
between different XPath 2.0 engines, for evaluating assertions. This can be 
done by setting the Java system property, 
'''org.apache.xerces.assertProcessor'''. Xerces-J has an out of the box support 
for PsychoPath and Saxon-b engines. If the user doesn't set this property, or 
set it's value to, '''org.apache.xerces.impl.xs.XMLAssertPsychopathImpl''', the 
PsychoPath processor would be selected for XPath 2.0 processing. For selecting 
Saxon-b as the XPath 2.0 engine, the user must set the value of this property 
to, '''org.apache.xerces.impl.xs.XMLAssertSaxonImpl'''.
+  1. By default, the Xerces-J Schema processor would select the PsychoPath 
engine for XPath 2.0 processing. Xerces-J has a provision for the user, to 
select between different XPath 2.0 engines for evaluating assertions. This can 
be done by setting the Java system property, 
'''org.apache.xerces.assertProcessor'''. Xerces-J has an out of the box support 
for PsychoPath and Saxon-b engines. If the user doesn't set this property, or 
set it's value to, '''org.apache.xerces.impl.xs.XMLAssertPsychopathImpl''', the 
PsychoPath processor would be selected for XPath 2.0 processing. For selecting 
Saxon-b as the XPath 2.0 engine, the user must set the value of this property 
to, '''org.apache.xerces.impl.xs.XMLAssertSaxonImpl'''.
  
- If user's wish to use yet another, XPath 2.0 engine for Xerces-J assertions, 
they need to write a custom Java layer similar to 
org.apache.xerces.impl.xs.XMLAssertPsychopathImpl or 
org.apache.xerces.impl.xs.XMLAssertSaxonImpl. Xerces-J would publish an API, to 
integrate to XPath 2.0 engines.    
+  1. If user's wish to use an XPath 2.0 engine other than PsychoPath or Saxon, 
for working with Xerces-J assertions, they need to write a custom Java layer 
similar to org.apache.xerces.impl.xs.XMLAssertPsychopathImpl or 
org.apache.xerces.impl.xs.XMLAssertSaxonImpl. Xerces-J would publish an API, to 
integrate to standard compliant XPath 2.0 engines.
+ 
+  1. Xerces-J flags error messages during assertions processing, as 
recommended by the XML Schema 1.1 specification. If the user provides a 
syntactically wrong XPath 2.0 expression, the Schema processing terminates, 
flagging an error message to the user with key, '''cvc-xpath.3.13.4.2'''. If 
the XPath 2.0 syntax is correct, but any of the assertions evaluate to "false", 
the Schema processing terminates, and an error message is shown to the user 
with key, '''cvc-assertion.3.13.4.1'''.     
  
  
  '''References:'''

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

Reply via email to