This: ns:example/title/text()
should be: ns:example/ns:title/text()
Similarly in the next line: ns:example/ns:para/text()
Though I'm not sure why you have a template matching ns:para elements and then bypass the element when doing apply-templates, going straight to the text nodes instead.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference