Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #50 - No Support for xsd:import in Schema Handling #55

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

cjundt
Copy link
Contributor

@cjundt cjundt commented May 30, 2024

xsd:import is handled by XmlSchema but this PR takes care of considering linkbases of imported schemas.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question about this change: my original intent with the XML interfaces is so that I could swap out XML parsing implementations as needed without disturbing the rest of Gepsio. In other words, instead of Gepsio calling XML methods directly, it would call an interface implementation without needing to know the details of what XML implementation was being used. This design allowed, for example, for Gepsio to switch from the old .NET Framework System.Xml implementation to the newer System.Xml.Linq implementation without having to go through Gepsio to find all of the XML implementation details scattered throughout. This design, logically, gives Gepsio a layered design that looks something like this:

.NET runtime -> XML handling -> Gepsio

With that in place, it seems like the XML handling should be able to live "in isolation", which it should be able to work without knowing anything about Gepsio. At first glance, the usage of LinkbaseDocumentCollection within ISchemaSet implies that the XML implementation must now know about Gepsio, which breaks that layering design of ".NET -> XML -> Gepsio".

There are two possibilities:

  • This can be refactored so that the XML implementation remains ignorant of the "higher level" Gepsio, or
  • the ".NET -> XML -> Gepsio" logical layering is naive and not actually feasible

What are your thoughts there?

Copy link
Contributor Author

@cjundt cjundt Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right, I should keep the LinkbaseDocumentCollection within XbrlSchema !
I will amend this PR.

Note that SystemXml implementation fails because Attribute.Node property is not implemented.

Copy link
Owner

@JeffFerguson JeffFerguson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment that I left in the change for ISchemaSet.cs. Feedback is welcome.

@cjundt
Copy link
Contributor Author

cjundt commented Jun 26, 2024

Hi @JeffFerguson,

Are you still waiting on something from me since my last commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants