Added option for the caller to provide a known list of namespaces, and for the user to provide a function that will generate new unused namespace prefixes