def extract_columns_from_table_definition_file(xmltag, table_definition_file):
    def handle_path(path):
        """Convert path from a path relative to table-definition file."""
        if not path or path.startswith("http://") or path.startswith("https://"):
            return path
        return os.path.join(os.path.dirname(table_definition_file), path)

    return [Column(c.get("title"), c.text, c.get("numberOfDigits"), handle_path(c.get("href")), None, c.get("displayUnit"), c.get("scaleFactor"))
            for c in xmltag.findall('column')]
Parse a template from a file, using a simple file format.
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/tablegenerator/__init__.py/extract_columns_from_table_definition_file--crossover with--dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/FromFile