bartneck / swiML

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

length missing in simplified repetition #99

Closed bartneck closed 4 months ago

bartneck commented 6 months ago

The 50m and 100m are missing from the repetition JasiMasters2024032401.xml

Have a look at the image to see how exactly the 8x150 are to be swum.

SCR-20240327-kk2

calloc262 commented 6 months ago

The XSL is breaking because the way this is represented should cause an XSD assertion failure, You're representing the 150 as a repetition of a 50 and a 100, which isn't a 150. So either the inside of each 2x repetition should be wrapped in a continue to make them 150s or these are meant to be broken 150s as there is rest after each stop, something that is not currently achievable using the current xsd and xsl.

bartneck commented 6 months ago

Okay, this will become a feature request. I will keep this open until we have the time to fix this. Maybe we need to create a new type of repetition that includes required lengths.

bartneck commented 4 months ago

I tried this again with a repetition that only consists of 50 meters: jasiMasters/JasiMasters2024032601.xml

SCR-20240524-noed

It should be 16 x 50 meters in the front. The 50 meters inside the brackets should be shown. There seems to be something else wrong here. According to your explanation, this should have worked if all the instructions are of the same length.