oasis-tcs / lexidma

OASIS Lexicographic Infrastructure Data Model and API (LEXIDMA) TC: A repository designed for use in development of TC chartered work products and test suites. https://github.com/oasis-tcs/lexidma
Other
7 stars 8 forks source link

XML Schema mandates order of elements but serialization description does not #117

Closed jmccrae closed 3 months ago

jmccrae commented 5 months ago

Either

jmccrae commented 5 months ago

Relates to #93

michmech commented 5 months ago

Good point.

In the XML serialisation, order matters for XML elements that implement model-level types that have a model-level listingOrder property. This property is actually implemented by the elements' order.

For all other XML elements, order doesn't really matter. But then you'd end up with e.g. senses containing a mixture of child elements for whom order matters (<example> etc.) and child elements for whom order doesn't matter (<indicator> etc.). That seems complex. Maybe the XML serialisation would become simpler if we simply said that child elements are supposed to always be in the order in which they are listed in the spec?