Name

rng:except — Excludes names or values

XML syntax example

<element name="digit"
  datatypeLibrary="http://www.w3.org/2001/XMLSchema-
  datatypes">
 <data type="nonPositiveInteger">
  <param name="minInclusive">−9</param>
  <except><value>0</value></except>
 </data>
</element>

Compact syntax example

element digit {
  xsd:nonPositiveInteger { minInclusive = "−9" } - ("0") }

Parents

anyName, data, nsName

Description

The except element removes names from a name class or values from a datatype. When used with data, the data element can contain only other data, value, or choice elements. You can’t use except to create an empty name class.

See also

§11, anyName, data, nsName, value

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.