Name
namespace — Namespace declaration
Synopsis
“namespace”identifierOrKeyword
“=”namespaceURILiteral
Restrictions
decl
May be included in XML syntax equivalent xmlns
Description
The
namespace
declaration defines namespace prefixes for the compact syntax, like
xmlns
:xxx
attributes in
XML. Note that unlike XML namespace declarations, declarations for
the RELAX NG compact syntax in general (and
namespace
declarations in particular) are global
to a schema and can’t be redefined. A prefix can be
assigned to the lack of namespace using the value
“”. The xml
prefix is
predefined.
Example
namespace hr = "http://eric.van-der-vlist.com/ns/person" namespace local = ""
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.