Name

nsName exceptNameClass — Name class for any name in a namespace

Synopsis

                     NCName “:*” [
exceptNameClass]

Restrictions

nameClass

May be included in

(nameClass), *-nameClass, attribute, element, nameClass|nameClass, nsName exceptNameClass

XML syntax equivalent

nsName

Description

The nsName exceptNameClass name class allows any name in a specific namespace.

The namespace is defined by the nsName production, and the set of these names can be restricted using the exceptNameClass production.

Restrictions

Within the scope of an element, the name classes of attributes can’t overlap. The same restriction applies to name classes of elements when these elements are combined by interleave. It’s impossible to use nsName exceptNameClass to produce empty name classes by including nsName exceptNameClass in an except name class that’s included in another nsName.

Example

element lib:* { anything }

element hr:* - ( hr:author | hr:name | hr:born | hr:died ) { anything }

Get RELAX NG 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.