Name

datatypes — Namespace declaration (to identify datatype libraries)

Synopsis

“datatypes” 
identifierOrKeyword “=” 
literal
                  

Restrictions

decl

XML syntax equivalent

xmlns:name

Description

The datatypes declaration assigns a prefix to a datatype library 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 datatypes declarations in particular) are global to a schema and can’t be redefined. The prefix xsd is predefined and bound to http://www.w3.org/2001/XMLSchema-datatypes.

Example

datatypes xs = "http://www.w3.org/2001/XMLSchema-datatypes"

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.