For understanding the whole issue of whitespace around tags in (TEI) XML, may I recommend
the thorough article at http://wiki.tei-c.org/index.php/XML_Whitespace
This goes beyond the issue of the space before <lb/>, of course,
but covers that situation too. It includes XSLT code to do the full job
of what Syd’s code makes a start on. The last code example there
is taken from the Stylesheets collection - this is what is actually
in use throughout the system.
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
Não sou nada.
Nunca serei nada.
Não posso querer ser nada.
À parte isso, tenho em mim todos os sonhos do mundo.