Name

xs:restriction

Attribut

base

Der Typ, dessen Inhalt modifiziert wird, um einen neuen Typ zu erzeugen.

Inhalt

xs:annotation?,
(xs:simpleType?, (xs:enumeration | xs:fractionDigits |
                  xs:maxExclusive | xs:maxInclusive |
                  xs:minExclusive | xs:minInclusive |
xs:pattern | xs:pattern)* ) |
( (xs:group | xs:all | xs:choice | xs:sequence )?,
( (xs:attribute | xs:attributeGroup)*,
   xs:anyAttribute? ) )
)

xs:restriction ermöglicht es Ihnen, neue abgeleitete Typen zu erzeugen, in denen das Inhaltsmodell dasselbe wie im Basistyp oder gegenüber diesem eingeschränkt ist. Jeder Typ, der mit xs:restriction erzeugt wird, muss gegen den Typ validiert werden können, von dem er abgeleitet ist. Der Basistyp kann entweder mit dem base-Attribut oder dem xs:simpleType-Kindelement ...

Get XML: kurz & gut now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.