Use expression logic for namespace matching