Name

*-nameClass — Name class accepting any name

Synopsis

“*” [exceptNameClass]

Restrictions

nameClass

May be included in

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

XML syntax equivalent

anyName

Description

The anyName name class matches any name from any namespace. This wide spectrum may be restricted by embedding except name classes.

The set of these names can be restricted using the optional 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.

Example

foreign-elements = element * - (local:* | lib:* | hr:*) { 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.