-
Notifications
You must be signed in to change notification settings - Fork 85
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
Enhance ls manifest description with schema #1854
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.
Shall we include a graphical illustration of the new schema as for the other schemas?
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.
This is basically the proposal that I made in fmi-ls-xcp so it's fine for me.
schema/fmi3LSManifest.xsd
Outdated
<xs:attribute ref="fmi-ls:fmi-ls-description" use="required"/> | ||
</xs:attributeGroup> | ||
|
||
<xs:element name="FMILSManifest"> |
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.
Not sure if I like the casing. Maybe we should stick to simple camel case as in "fmiModelDescription"?
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.
I've regularized and spelt out the naming some more.
<MyRootElement | ||
<MyRootElement | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="fmi_ls_manifest_example_schema.xsd" | ||
xmlns:fmi-ls="http://fmi-standard.org/fmi-ls-manifest" | ||
fmi-ls:fmi-ls-name="org.fmi-standard.demo-ls-name" |
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.
Do we need the attribute prefix in addition to the namespace? Wouldn't "fmi-ls:name" be sufficient?
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.
It technically would, however it is probably still a good idea to have the more explicit names, given that in some circumstances the namespace is not readily apparent.
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified" | ||
vc:minVersion="1.1" |
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.
Is version=1.1 necessary for this example? Otherwise we could remove it.
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.
Not needed, just happened to be in there...
It would be good to finalize and merge this. |
This adds a schema for the manifest attributes and the default minimal manifest, and enhances the examples to showcase that to some extent.