bartneck / swiML

A project to formalise swimming programs using XML
MIT License
2 stars 2 forks source link

individualMedleyOrder assertion in continue #112

Open bartneck opened 1 month ago

bartneck commented 1 month ago

When the <continueLength> element is set to true, <continue> acts like a repetition. The stroke individualMedleyOrder is normally only permitted within a repetition. The assertion should be adjusted to also allow it to be within a continue element with continueLength set to true.

This issue is visible in the jasiMasters/JasiMasters2024040901.xml file.

bartneck commented 1 month ago

The same validation error occurs in jasiMasters/JasiMasters2024051901.xml

bartneck commented 1 month ago

We discussed this issue and through we could resolve it by putting any individualMedleyOrder into a repetition. However, in the example of jasiMasters/JasiMasters2024051901.xml we see that even if it is already nested from a repetition, the error occurs. In this particular case, it also makes no sense to add another repetition since it would need to be a 1 x repetition.

SCR-20240604-olwg