How XML data gets translated to XHTML