Allow to get namespace extension dynamically

I succeeded in getting the namespace extension from the URI dynamically.