The problem is clearly something to do with your XSLT processor or your processing environment, which you have told us nothing about. You need to go to your vendor's product support site.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference