Non si può fare con un xhtml, dovresti usare un linguaggio lato server che interpreti l'xml. PHP o ASP.