added option to use xml:id and xml:lang