[lxml.SCHEMAV_ELEMENT_CONTENT] XML file syntax error Element '{http://www.xbrl.org/2013/inlineXBRL}schemaRef': This element is not expected

74 views
Skip to first unread message

Tomasz Kisiel

unread,
Oct 13, 2024, 4:49:35 PM10/13/24
to Arelle-users
Hi, I try to use ixbrl-viewer plugin to generate report with viewer. When I run command

arelle-cli --plugins="path/to/plugin" -f disclosure-v8.xhtml --save-viewer disclosure-v8-viewer.xhtml --viewer-url https://cdn.jsdelivr.net/npm/ixbrl-...@1.4.36/iXBRLViewerPlugin/viewer/dist/ixbrlviewer.js --viewer-no-copy-script --viewer-feature-review

I am getting and error:

[lxml.SCHEMAV_ELEMENT_CONTENT] XML file syntax error Element '{http://www.xbrl.org/2013/inlineXBRL}schemaRef': This element is not expected. Expected is one of ( {http://www.xbrl.org/2003/linkbase}schemaRef, {http://www.xbrl.org/2003/linkbase}linkbaseRef )., line 21, path 'body/div[1]/ix:header/ix:references/ix:schemaRef', xpath '/*/*[2]/*[1]/ix:header/ix:references/ix:schemaRef' - disclosure-v8.xhtml

But despite the error the report with viewer is generated. If I change date in namespace uri to 2003 as error says I am getting an error

[viewer:error] No inline XBRL documents loaded. Skipping iXBRL Viewer generation. -

And the report with viewer is not generated. Why is the reason for that? What are correct namespaces to build report with ixbrl-viewer?
 
disclosure-v8.xhtml

Austin Matherne

unread,
Oct 13, 2024, 9:45:41 PM10/13/24
to Arelle-users
Hello,

The error message isn't instructing you to change the year of the namespace for the schemaRef element to 2003. Instead, it's indicating that it's the wrong namespace and that you should use the linkbase namespace instead, which coincidentally is from 2003. There isn't a 2003 version of the inlineXBRL namespace; the available versions are 2008 for the 1.0 specification and 2013 for the 1.1 specification, neither of which are used to define the schemaRef element.

Best regards,
Austin Matherne

Reply all
Reply to author
Forward
0 new messages