bartneck / swiML

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

Continue Element #2

Closed bartneck closed 1 year ago

bartneck commented 1 year ago

The swiML schema currently has no means to express a continue swimming block. The coach might write 300 FR KDS which is 100 FR Kick, 100 FR Drill, 100 FR Swim. Right now this would be expressed by setting the rest period for these three instructions to zero. We need a dedicated <continue> XML element for this purpose. This would be similar to how a <repetition> is currently setup. There will be more blocks like this in the future, such as <pyramid>. In the folder bookExamples, the file continue.xml has valid and invalid test cases.

The length of the <continue> block needs to be calculated through XSLT. Neither the coach nor Python should do this calculation. We need to avoid the coaches entering invalid information.

The <continue> block should have a summary on the left in the HTML/CSS. This summary can be either the sum of the length of the included <instructions> or a <numberOfContinueInstructions>. The later is not a good name and we still need to find a better name. It is currently called <simplify> which is too generic.