We have automatic tests for xml2ly that check compliance with the musicXML standard.
I'm fairly certain it's a problem with your musicXML, rather than xml2ly.
Unfortunately, I'm not expert enough on musicXML to find the mistakes.
Why are your writing your own musicXML and then using xml2ly, instead of just
writing in lilypond?
Carl
