HYRAX-1940 - Initial XML Schema for the DMR++#22
Conversation
This includes the XML Schema for the dmrpp namespace elements.
Adopt the formatting of the first two elements' description. Describe the element, then in subsections, describe its attributes and child elements (if any). Add a section where the concepts are explained, maybe using infor from the ESIP session.
|
This is starting to look pretty nice! Is there a way to combine dap4 schema and dmrpp schema? Say for validation tests. |
|
For this PR, the most important documents are in the xml-schema subdirectory. The XML schema is in |
| version="1.0"> | ||
|
|
||
| <!-- Is this namespace OK: xmlns:dmrpp="http://opendap.org/ns/dmrpp/1.0#" --> | ||
|
|
There was a problem hiding this comment.
you may need to add <xs:import namespace="http://www.w3.org/XML/1998/namespace"/> somewhere. In here https://github.com/OPENDAP/xml/blob/master/dap4/dap4.xsd Line38, it states it is required. Perhaps not an issue now but at some point we will need to add validation tests just the same way we did for the dap4 xsd
There was a problem hiding this comment.
I think this import is for the xml:base attribute. The comment about the namespace is codex asking me if the namespace http://opendap.org/ns/dmrpp/1.0# is an ok name.
Regardless, validation is a separate task. We can make a ticket for that and work that, but I'm more interested in the narrative correct.
| <!-- How fixed-length strings are padded --> | ||
| <xs:simpleType name="PadKind"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:enumeration value="null" /> |
There was a problem hiding this comment.
should these options have "null_pad", "space_pad", and "zero_pad"? I think I saw an example DMR++ that add a "null_pad" value
There was a problem hiding this comment.
Yes! Good catch!
|
I'll add the enumeration values and a ticket about validation. Then merge. |
Added the initial version of the DMR++ documentation.
This includes the XML Schema for the dmrpp namespace elements.