Name
rng:anyName — Specifies a name pattern that matches any name in any namespace
XML syntax example
<grammar xmlns="http://relaxng.org/ns/structure/1.0"> <start> <ref name="any"/> </start> <define name="any"> <element> <anyName/> <zeroOrMore> <choice> <attribute> <anyName/> </attribute> <text/> <ref name="any"/> </choice> </zeroOrMore> </element> </define> </grammar>
Compact syntax example
start = any any = element*
{ (attribute*
{ text } | text | any)* }
Parents
,
attribute
,
choice
,
element
except
Description
The anyName
element, when
used as the child of an attribute or element pattern, causes that
pattern to match any element or attribute name from any namespace in
an instance. You can also use anyName
in conjunction with the except
and nsName
elements to exclude names in a
given namespace.
See also
§11, except
, nsName
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.