Hi, Fausto You can use your own namespace for extension functions. For example, the following stylesheet should work if you have the my.own.extension.ExtensionImpl in the correct classpath. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:own="http://my.own.extension" exclude-result-prefixes="own"> <xsl:template match="/"> <xsl:value-of select="own:ExtensionImpl.new()"/></p> </xsl:template> </xsl:stylesheet>
Christine Li XML Transformation IBM Toronto Lab Tel: (905)413-2601 Email: [EMAIL PROTECTED] Fausto <[EMAIL PROTECTED]> 24/10/2008 08:35 AM To xalan-j-users@xml.apache.org cc Subject Java extensions namespaces Hi all, I am not sure I did understand well how the extension namespaces works on xalan-j, because I have not found a way to define my own namespace for the extentions. Like having "http://my.own.extension" namespace for the class my.own.extension.ExtensionImpl. Only way I have seen to use extensions is having a xalan prefix to http://xml.apache.org/xalan/java namespace, and use xalan:full.qualified.className.method to access the extension function, or declare a component for the extension element. I hope I'm wrong and I haven't just seen the way of doing that. And I need the http:// on the namespace. Any clues? -- Obrigado, Fausto.