-
Notifications
You must be signed in to change notification settings - Fork 65
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
IDS file validation issues with schema v0.9 #113
Comments
The problem has been found both on Java and .NET implementation. |
The combination of namespaces is valid XSD; not all tools support it. |
Any timeframe in which we can expect this documentation? It would be great to know which approach to take. |
|
It is perfectly fine to have multple namespace indeed. But this is something else. The curent IDS implementation uses typycal constructs that are normally used to validate a XSD. That is really confusing and IMO not intended to be used in XML. There are a couple of signals to take into consideration:
Both 1 and 2 make it more complex than needed and could have a negative impact on the adoption of IDS by the industry.
If this imposed on developers who must interact with IDS, then I think the wrong decision is made.
I share that concern. I even think it will work against IDS to re-pupose standard XSD types in your XML. Also I would be happy to help! |
+1 - the use of XSD 'design-time' minoccurs / maxoccurs attributes the host the desired behaviour in the 'runtime' specification has always struck me as both conceptually wrong, and introducing unnecessary complexity in tooling, authoring, parsing and execution of the IDS, when all that's needed is a enumeration of Required/Prohibited/Optional etc. Even if the thinking was this could also be extended for 'aggregate' restrictions in future (e.g. "There must be exactly 10 elements" => minoccurs=10 maxoccurs=10) ... it still feels semantically wrong, and won't support more sophisticated aggregates. |
I would like to come to an agreement around this. Worth discussing in the calls. I think most implementers agree that the use of the The proposed solution is to keep this solution for 1.0 and discuss changes and improvement to future versions. |
Trying to validate an IDS file (using schema 0.9) via Java, we get the error
Eliminating this import:
<xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="XMLSchema-instance"/>
solves the problem.
The text was updated successfully, but these errors were encountered: