-
Notifications
You must be signed in to change notification settings - Fork 8
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
[md2orchestra] Invalid usage of dcterms name space in metadata element #62
Comments
@donmendelson Do you think I am correct here? Do I missing something? |
The Dublin Core XML namespaces are a bit confusing.
Therefore, many of the terms, such as |
So I wonder why the official Orchestra FIX Latest XML does use the other way? |
A bit more detail on namespaces: A complete explanation of Dublin Core Terms Initiative namespaces is here: In short...
Therefore only |
The Orchestra repository schema defines metadata element like this;
and the
Therefore, I believe the repository schema is using the correct namespace. The FIX Latest file (EP 272) in the orchestrations repository also defines the namespace as
This is also correct. @JThoennes, the file you referred to was produced by a different process (XSLT) while starting with EP272 we started publishing a file produced with a Python script. In short, I believe that the problem has been resolved, at least in this instance. Nevertheless, we need to examine how other tools that write Orchestra files are managing namespaces. This has always been one of the tricky aspects of XML schema usage, and I thank you for bringing it to our attention. |
One last comment on namespaces: when an XML namespace is declared in an XML file with |
Thanks, @donmendelson, for your detailed answer! Did not visit this space for a while. |
Comparing the output of
md2orchestra
to the Orchestra file of FIX Latest, I see some notable differences: While the Orchestra FIX Latest only uses thedc:
XML name space,the generated XML code uses
dcterms:
which causes validation errors in my IDE.I think that the
<fixr:metadata>
elements only allows<dc:*>
. The Orchestra FIX Latest adheres to this restriction:while the generated code looks like:
I think the problem is the Tablature
RepositoryMapper.getPreferredPrefix()
. Thedcterms
case should be removed.Then both the XML name space declaration is dropped and the
dc:
prefix is used.The text was updated successfully, but these errors were encountered: