registry -> ns
add prefix resolver
use RESOLVE-PREFIX-NAMESPACE in ENSURE-PREFIX