From 5878e797295bc57468e6bfc3f030b5b5fb0c1463 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez-Urias Date: Tue, 23 Dec 2025 10:28:03 -0800 Subject: [PATCH] match the spec for structs and seqs when these contain Dim elements --- dap4/dap4.xsd | 36 ++++++++++++++++++++++------------ tests/data/Structure_test3.dmr | 23 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 12 deletions(-) create mode 100644 tests/data/Structure_test3.dmr diff --git a/dap4/dap4.xsd b/dap4/dap4.xsd index f857766..67cf72f 100644 --- a/dap4/dap4.xsd +++ b/dap4/dap4.xsd @@ -256,22 +256,34 @@ - - - - - + + A Structure groups a list of variables so that the + collection can be manipulated as a single item. The fields (or Variables) + in a Structure MAY be of any type, including Structure or Sequence. The + order of items in the Structure is significant only in relation to the + serialized representation of that Structure. + + + + + + - - - - - - - + + + A Sequence is intended to represent a sequence of instances of objects. + A Sequence was introduced to replace the concept of variable length dimensions. + . + + + + + + + diff --git a/tests/data/Structure_test3.dmr b/tests/data/Structure_test3.dmr new file mode 100644 index 0000000..6507de6 --- /dev/null +++ b/tests/data/Structure_test3.dmr @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file