tweaking TCP conversion for more edge cases
if a label has an xml:id, means @id in HTML