Many thanks to everyone who responded to this thread, and to Wendell Piez for his xsl solution, which I have adopted. Best, /r:b: