That's excellent, many thanks!
http://tei.oucs.ox.ac.uk/Roma now has your fixes applied, and seems to work as expected.
I will make a new release for the www.tei-c.org soon.
Welcome to the select world of Roma developers……. :-}
Director (Research Support) of Academic IT Services
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431