by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


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 = ""

This text is released under the Free Software Foundation GFDL.