The way to use extension functions depends very much on your XSLT processor and the language you want to write them in. However, you should be able to find examples in the documentation for your chosen processor, or in any good XSLT textbook.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference