xsd.IdentityConstraintDefinition

Identity-constraint definition components provide for uniqueness and reference constraints with respect to the contents of multiple elements and attributes.

KEY The identity-constraint definition asserts uniqueness as for unique. The constant key further asserts that all selected content actually has such tuples. KEYREF The identity-constraint definition asserts a correspondence, with respect to the content identified by selector, of the tuples resulting from evaluation of the field’s XPath expression(s), with those of the referenced key. UNIQUE The identity-constraint definition asserts uniqueness, with respect to the content identified by selector, of the tuples resulting from evaluation of the field’s XPath expression(s).

class xsd.IdentityConstraintDefinition

Attributes

xsd.IdentityConstraintDefinition.annotations

A sequence of Annotation components.

xsd.IdentityConstraintDefinition.fields

A sequence of XPathExpression property records.

xsd.IdentityConstraintDefinition.identity_constraint_category

One of {key, keyref, unique}. Required.

xsd.IdentityConstraintDefinition.name

An xs:NCName value. Required.

xsd.IdentityConstraintDefinition.referenced_key

An IdentityConstraintDefinition component. Required if identity_constraint_category is keyref, otherwise (if identity_constraint_category is key or unique) must be absent. If a value is present, its identity_constraint_category must be key or unique.

xsd.IdentityConstraintDefinition.selector

An XPathExpression property record. Required.

xsd.IdentityConstraintDefinition.target_namespace

An xs:anyURI value. Optional.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__