Skip to content

Commit

Permalink
Implemented #115
Browse files Browse the repository at this point in the history
  • Loading branch information
manusimidt committed Sep 12, 2023
1 parent e0ae1f8 commit 78a6e27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbrl/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,11 @@ def parse_taxonomy(schema_path: str, cache: HttpCache, schema_url: str or None =
import_elements: List[ET.Element] = root.findall('xsd:import', NAME_SPACES)

for import_element in import_elements:
import_uri = import_element.attrib['schemaLocation']
import_uri = import_element.attrib['schemaLocation'].strip()

# Skip empty imports
if import_uri == "":
continue

# sometimes the import schema location is relative. i.e schemaLocation="xbrl-linkbase-2003-12-31.xsd"
if import_uri.startswith('http'):
Expand Down

0 comments on commit 78a6e27

Please sign in to comment.