declare-ns

Usage

declare-ns expression expression

Description

This command takes one or two arguments: prefix and URI, both evaluated as names. It creates a namespace declaration of the form xmlns:prefix="URI" on the current node. The command produces an error if the prefix is already declared in the scope of the current node with a different namespace URI.

See Also

set-ns, change-ns-uri, change-ns-prefix, namespaces