Name

rng:notAllowed — Fails when matched

XML syntax example

<element name="abstract">
   <notAllowed/>
</element>

Compact syntax example

element abstract { notAllowed }

Parents

attribute, choice (( ) and |), define (name of pattern followed by =), element, except (-), group (( ) and ,), interleave (&), list, mixed, oneOrMore (+), optional (?), start (start followed by =), zeroOrMore (*)

Description

The notAllowed pattern fails when matched. In grammars that will be incorporated into larger grammars, notAllowed is useful for specifying an abstract pattern that may be overridden.

See also

§13

Get XML Pocket Reference, 3rd Edition 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.