Der XPath-Ausdruck einer complexType Assertion definiert den Validierungs-Constraint, der im Instanzdokument am complexType-Element angewendet werden soll.
So wurde die Assertion in der Abbildung oben z.B. für das complex-type Element team definiert.Der XPath-Ausdruck der Assertion lautet:
manual.altova.comThe XPath expression of a complex type assertion defines the validation constraint to be applied on the complex type element in the instance document.
For example, in the screenshots above, the assertion is on the complex-type element team and the assertion's XPath expression is:
manual.altova.comEine solche Assertion wird in einem xs : assert Element definiert und dient als Gültigkeits-Constraint für den complexType.
(Bei der anderen Art von Assertion handelt es sich um eine Assertion zu einem simpleType.Sie wird in einem xs:assertion Element definiert und in der Eingabehilfe "Facets" eines simpleType erstellt und bearbeitet.)
manual.altova.comSuch an assertion is defined in an xs : assert element and serves as a validity constraint on the complex type.
(The other kind of assertion is an assertion on a simple type, which is defined in an xs:assertion element and is created and edited in the Facets entry helper of a simple type.)
manual.altova.comSo überprüft z.B. der XPath-Ausdruck string-length ( $ value ) = 6 ( siehe Abbildung unten ), ob der Wert des simpleType sechs Zeichen hat.
Wenn das Element oder Attribut im Instanzdokument sechs Zeichen hat, ist es gemäß der Assertion gültig.
EHFacetsAssertionsEP
manual.altova.comFor example, the XPath expression string-length ( $ value ) = 6 ( see screenshot below ) tests whether the value of the simple type has six characters.
If the element or attribute in the instance document does have six characters, then it is valid according to the assertion.
EHFacetsAssertionsEP
manual.altova.comWould you like to add some words, phrases or translations?
Submit a new entry.