

def nspath(path, ns=OWS_NAMESPACE):
    '\n\n    Prefix the given path with the given namespace identifier.\n    \n    Parameters\n    ----------\n\n    - path: ElementTree API Compatible path expression\n    - ns: the XML namespace URI.\n\n    '
    if ((ns is None) or (path is None)):
        return (- 1)
    components = []
    for component in path.split('/'):
        if (component != '*'):
            component = ('{%s}%s' % (ns, component))
        components.append(component)
    return '/'.join(components)

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py nspath/original