-
Notifications
You must be signed in to change notification settings - Fork 56
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
XML namespace errors #1031
Comments
It's here: Lines 35 to 42 in 0592a98
How is this tool trying to find it? Perhaps assuming the Line 4 in 0592a98
It is not required for the For reference about |
W3schools provides documentation for the XML Line 3 in 0592a98
Note: The re-use of terms here is really mind numbing. |
The tool gets the namespace information from http://definition.nexusformat.org/nxdl/nxdl.xsd but the file nxdlTypes.xsd does not exist there... |
Note that since |
So this means I can only work on new nxdl.xml files inside the definitions repo and not anywhere else? |
The tool gets the namespace from xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd" which I had to change to this to work xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 http://definition.nexusformat.org/nxdl/nxdl.xsd" It finds it but gives lots of errors because "nxdlTypes.xsd" is not available in "http://definition.nexusformat.org/nxdl/" I presume. |
Isn't the idea of publishing an xml namespace that it can be used by validation tools everywhere? |
If you want to use such automation tools that assist you in editing and checking validity of NXDL (.nxdl.xml) files, then the answer is Yes. Inside a branch or fork. |
Pick up the previous discussion: #835 (comment) Propose the publishing of this URI as an actual URL in a new issue. |
Having a URL for nxdl.xsd but not for nxdlTypes.xsd makes no sense imo. Either you have a URL for all .xsd files or for none. So yes I could propose that but the .xsd files refer to each other with URI's: Line 35 in 0592a98
So I'm not sure this is even going to solve the problem. |
Line 3 in 0592a98
From this and this description it seems that
Yes I'm losing my mind over here. For example XML Schema is apparently one of the several XML schema languages. That's like having a car brand called |
RIght: clarify: The Right: Right: If we publish our XML Schema as a URL, we could publish both files ( |
So for XML validation to work for NXDL files located anywhere we would have the rely on
"xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd" by this xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 http://definition.nexusformat.org/nxdl/nxdl.xsd"
<xs:include schemaLocation="nxdlTypes.xsd"> by this <xs:include schemaLocation="http://definition.nexusformat.org/nxdl/nxdlTypes.xsd">
How does the content of |
Additional remarks:
So there are some inconsistencies: The http://definition.nexusformat.org/nxdl/ structure should be Edit: the NXDL source links in the manual could then also points to the deployed sources |
@FreddieAkeroyd Could you comment on how to deploy to http://definition.nexusformat.org/nxdl/ from github actions (if possible)? |
No work on this issue at 2022-06 Code Camp. Is it necessary to resolve this for release of NXDL now? |
We can keep it for the next release |
I'm using the XML language plugin by Red Hat in VScode
I'm getting these errors:
I'm not an XML expert but the file http://definition.nexusformat.org/nxdl/nxdlTypes.xsd is missing. Perhaps that causes some of the errors?
The text was updated successfully, but these errors were encountered: