`viewname = namespace + ':' + viewname` would be simpler and perfectly acceptable here.