i think i need absolutely the same file,
then XSLT is not your language of choice. You need a language tha allows updaing of in place XML trees. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list