<xsl:stylesheet version="1.0" extension-element-prefixes="func cred tmpl"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:func  ="http://exslt.org/functions"
  xmlns:cred  ="http://www.some.com/xsl/cred"
  xmlns:tmpl  ="http://www.some.com/xsl/tmpl"
  >

 <func:function name="cred:myfunc">
	<xsl:message>In function lib1</xsl:message>
	<xsl:variable name="func-dbg" select="tmpl:myfunc()"/> 

	<func:result select="$func-dbg"/> 

 </func:function>
  
</xsl:stylesheet>
