Please try to spend a little more time thinking before posting. The speed of your posts gives the impression that you are posting to the list before attempting any serious debugging.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference