JeffFerguson / gepsio

Gepsio is a document object model for XBRL documents based on .NET 6.
http://gepsio.wordpress.com
MIT License
68 stars 25 forks source link

Error loading schema namespaces - force Gespio to use local taxonomy? #46

Open 0JamesAB opened 1 year ago

0JamesAB commented 1 year ago

I am having trouble loading an XBRL instance XML file against a remote taxonomy, because some of the schema paths cannot be resolved. When loading the XML file, I get many errors of the form:

Fact CompanyRegistrationNumber references a namespace with a URI of http://xbrl.ssm.com.my/taxonomy/2017-12-31/ssmt-dei-core, but no schema can be found for that namespace. Schema element information is not available for this fact. If this URI references an industry standard namespace, contact the project administrators to get support for this industry standard in the project.
None of the schemas referenced by the XBRL fragment contain a definition for item type CompanyRegistrationNumber on element CompanyRegistrationNumber.

However, I have a local copy of the full taxonomy, and I note in this issue, that support was added such that when a 404 is returned for a taxonomy file, a local search will be performed for the taxonomy. Therefore, I pointed the instance XML to an XBRL schema URL that will return a 404, hoping it would use the local taxonomy stored in the same folder as the XBRL instance XML file. However, I simply get the error:

The XBRL schema at https://mbrs.ssm.com.my/taxonomy/1.1/rep/ssm/ar/ar1/this_does_not_exist.xsd could not be read due to error that occurred while accessing the network through a pluggable protocol. More information is available from the validation error object's inner exception property.

I then tried replacing the URL with a relative path to the schema on my local, which instead throws an error: XbrlSchema.GetFullSchemaPath() code path not implemented.

Is it possible to force Gespio to use my local taxonomy file? Any advice will be greatly appreciated!

satya11001 commented 5 months ago

@JamesBluemeg , did you end up resolving this issue, I am facing similar issue.

0JamesAB commented 5 months ago

No - I ended up using https://fractalexperience.github.io/xbrl/

Sent via Superhuman iOS ( @.*** )

On Fri, May 17 2024 at 2:59 PM, satya11001 < @.*** > wrote:

@JamesBluemeg ( https://github.com/JamesBluemeg ) , did you end up resolving this issue, I am facing similar issue.

— Reply to this email directly, view it on GitHub ( https://github.com/JeffFerguson/gepsio/issues/46#issuecomment-2116883500 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AXKLJO7BGWYV44NFMEVE73DZCWTGFAVCNFSM6AAAAAAXTFXXXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWHA4DGNJQGA ). You are receiving this because you were mentioned. Message ID: <JeffFerguson/gepsio/issues/46/2116883500 @ github. com>