XQuery/Namespace Constructors

Motivation
You want to dynamically create namespaces within a document.

Method
Use the XQuery namespace constructor. It has the format very similar to the element and attribute constructors:

namespace {prefix} {uri}

Acknowledgement
This example was contributed by Loren Cahlandar in Dec. of 2013