Name
(nameClass) — Container
Synopsis
“(” nameClass
“)”
Restrictions
nameClass
May be included in
(nameClass)
, *-nameClass
,
attribute
, element
,
nameClass|nameClass
, nsName
exceptNameClass
XML syntax equivalent
None
Description
The (nameClass)
container is useful for grouping
together name classes that have been combined using
|
(choice). This container is a name class and may
be combined with other name classes.
Even when such a container isn’t required, it is often used to improve the readability of a schema.
Example
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.