History | Edit

Assertions provide a flexible way to control the occurrence and values of elements and attributes available in an XML Schema.
Note: xs:assert is available for XML Schema 1.1.

Figure: The xs:assert Component

Table 1. xs:assert Properties
Property Name Description Possible Values
Test Specifies an XPath expression. If the XPath condition is valid, the specified type is selected as the element type. The expressions allowed are limited to a subset of XPath 2.0. Only the attributes of the current element and inheritable attributes from ancestor elements are accessible in the XPath expression. When you edit this property, the content completion list of proposals offers XPath expressions. An XPath expression.
XPath Default Namespace The default namespace used when the XPath expression is evaluated. ##defaultNamespace, ##targetNamespace, ##local.
ID Specifies the component ID. Any ID.
Component The edited component name. Not editable property.
System ID The component system ID. Not editable property.