-
Notifications
You must be signed in to change notification settings - Fork 495
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
7128 Change the source value from DVN to archive. #7132
7128 Change the source value from DVN to archive. #7132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. @jggautier said he prefers "archive" instead of "producer" at #7094 (comment)
Also, code wise, when I asked about this during a recent tech hours, it doesn't seem like our app needs "DVN" under "source" to function properly and that it's a well known issue that it doesn't validate.
I didn't attempt to do any validation myself.
@JingMa87 Would you show me how to adjust this xml to use the correct import elements?
|
Hey @JingMa87. I use https://www.freeformatter.com/xml-validator-xsd.html to check for XML validation and it gets the schemalocation info from the top |
@kcondon @jggautier That's interesting, I've been adding the XSD separately which causes the import error. In your case you don't have to change anything, but in case you add the XSD separately you have to fix the import statements in the XSD schema. It uses definitions like "xml:lang" and "dc:elementsAndRefinementsGroup" which come from other schemas, respectively xml.xsd and dcterms.xsd. The import statements for those schemas are not correct when used like this. |
@JingMa87 OK, thanks for the info. I do see the dvn/source error go away but am now seeing this: Cvc-complex-type.2.4.a: Invalid Content Was Found Starting With Element 'setAvail'. One Of '{"ddi:codebook:2_5":notes}' Is Expected., Line '1', Column '1324'. Does this need to be corrected here or will this wait for another iteration? |
@JingMa87 Yes, I see that you addressed the dvn issue. What I am saying is there is another issue and I do not know whether it is a result of this being incorrect in some way or just another issue that should/will be addressed later. |
@kcondon It's another problem and in my last comment I added the GitHub issue which addresses that. ;) |
@JingMa87 OK thanks for the clarification. I see so many prs it is not always so easy to interpret them. |
What this PR does / why we need it: Improves the DDI XML according to the XSD
Which issue(s) this PR closes: 7128
Closes #7128
Special notes for your reviewer: The fix we've all been waiting for.
Suggestions on how to test this: You can validate here https://www.freeformatter.com/xml-validator-xsd.html with this XSD https://ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd. You do need to fix the import elements first. These are the correct ones:
Does this PR introduce a user interface change? If mockups are available, please link/include them here: No
Is there a release notes update needed for this change?: No
Additional documentation: