(self, name)
return name
Return a namespaced parameter/tag name

        >>> xform = XFormBuilder()
        >>> xform.get_namespaced('jr:constraintMsg')
        '{http://openrosa.org/javarosa}constraintMsg'
        >>> xform.get_namespaced('constraint')
        'constraint'
Return a namespaced parameter/tag name
Return a namespaced parameter / tag name
def get_namespaced(self, name):
        """
        Return a namespaced parameter/tag name

        >>> xform = XFormBuilder()
        >>> xform.get_namespaced('jr:constraintMsg')
        '{http://openrosa.org/javarosa}constraintMsg'
        >>> xform.get_namespaced('constraint')
        'constraint'

        """
        has_namespace = re.compile(r'(\w+):(\w+)')
        if has_namespace.match(name):
            template = has_namespace.sub(r'{{{\1}}}\2', name)
            return template.format(**self.ns)
        return name
def get_namespaced ( self , name ) : has_namespace = re . compile ( r'(\w+):(\w+)' ) if has_namespace . match ( name ) : template = has_namespace . sub ( r'{{{\1}}}\2' , name ) return template . format ( * * self . ns ) return name