mff-uk / dataspecer

https://dataspecer.com
MIT License
24 stars 7 forks source link

Cardinality of XML elements in sequences confusing in documentation #745

Open jakubklimek opened 1 month ago

jakubklimek commented 1 month ago

{E1E81F77-C301-459E-8912-473A2AC20C8F} {F7F5088E-0520-4FB2-A2F4-8B64294CD57B}

jakubklimek commented 1 month ago

Actually, it is correct, but there is confusion about what is the "nadřazený kontejner" and "nadřazený element", because it cannot be seen that actually, in the "nadřazený element" there is a sequence [0..1], which is in fact the "nadřazený kontejner". Like this, it seems like the element is mandatory, even though it in fact is not in the "nadřazený element".

This seems like a simplification left to the user to figure out. However, we need to be clearer. Therefore, either

  1. do not talk about parent container at all and talk about parent element/parent type - and then compute the effective cardinalities or
  2. explicitly mention the sequence and the cardinalities from the Parent element to the current element