I wanted to use the plugin ‘inlineXbrlDocumentSet’ to extract an XBRL file from an Inline XBRL document.
Trying to do this I encountered 2 problems.
1. If the Report Package is extracted and I use the html-file as value for --file, it will look for the entrypoint scheme at the declared https location (as found in the html) but not in the Report Package itself. If an entrypoint scheme cannot be found, extraction will fail.
2. If the value for -- file is the Report Packages (still zipped) it will try to create an extracted xbrl file at the same location of the html-file in the zip. Which of course fails.
To solve at least the second problem, I needed to change the location for the extracted file. It must be pointed to a location outside of the Report Package.
In the
function ‘saveTargetDocument’ in the plugin the variable ‘targetUrl’ contains
the location of the extracted file. Changing this for example in ‘targetUrl =
r"E:\extract.xbrl"’ gives a positive result.
Wouldn’t it be a great idea to add an additional parameter (--outputfile) to
the plugin which defines the location (and filename) of the extracted XBRL
file.