What XSLT processor are you using?
And what output method are you using?
On the surface, this behaviour looks incorrect. But it might be explained if we know more detail about what you are doing.
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference