ADES-attic / xsd

XML Schema (W3C)
0 stars 0 forks source link

root element, meta element #11

Closed skeys closed 9 years ago

skeys commented 9 years ago

An XML document must have a single "root element" that contains all other elements. For MPC submissions, this is pretty clearly observationBatch but I wasn't sure if that made sense for other (non-submission) uses. I had been thinking maybe just observations could serve as a root element in cases where there was no submission header. But my recent proposal on versioning would need a place for schema information. Mixed in with the observations doesn't seem best. A separate root element would be better. Maybe all ADES XML files should have the same root element. We could just say this is observationBatch so a non-submission might look like

<observationBatch>
  <xsd-1.0>
    ...
  </xsd-1.0>
  <observations>
    ...
  </observations>
</observationBatch>

Or we use a meta tag like HTML to contain things such as schema information:

<observationBatch>
  <meta>
    <xsd-1.0>
      ...
    </xsd-1.0>
  </meta>
  <observations>
    ...
  </observations>
</observationBatch>

I don't have strong feelings either way about a meta tag.

Finally, are we happy with "observationBatch" as a root element? How about simply "ades"?

schastel commented 9 years ago

Finally, are we happy with "observationBatch" as a root element? How about simply "ades"?

"observationBatch" would make more sense. "ades" does not correspond to the document contents: the document does not contain a standard but information that complies to it. Metonymy is acceptable still but may introduce confusion.

Since there are apparently at the moment:

I would suggest 3 acceptable roots identifying the contents.

skeys commented 9 years ago

abandoned