xbrlus / xule

An open-source XBRL processor for business rules, rendering and custom data reporting. See https://xbrl.us/xule for documentation and https://xbrl.us/xule-editor for a VS Code syntax highlighter.
Apache License 2.0
24 stars 9 forks source link

Handle wrapper IXDS document refs #27

Closed austinmatherne-wk closed 6 months ago

austinmatherne-wk commented 8 months ago

The current IXDS Arelle plugin is setting the schema document refs on the wrapping IXDS model document instead of the iXBRL model document. This PR should allow XULE to work with both the current Arelle code that has the issue and future versions of Arelle once the issue has been resolved.

Can be tested with the files provided over email:

python arelleCmdLine.py --plugin "xule | transforms/SEC | inlineXbrlDocumentSet" -f 0000046619-22-000066-xbrl.zip --xule-compile ep.xule --xule-rule-set ep.zip --xule-debug --xule-crash --xule-run

Also resolves the following warning in Python 3.12:

xule/xule_grammar.py:268: SyntaxWarning: invalid escape sequence '\.'
  "\uF900-\uFDCF\uFDF0-\uFFFD\u0300-\u036F\u203F-\u2040\xB7_-]|(\\\.))"

@campbellpryde @marcward @phillipengel

davidtauriello commented 6 months ago

Hi @austinmatherne-wk - thanks for submitting this PR. The latest release (23722) addresses the IXDS and Python 3.12 issues.