[xslt] Problems using functions with xsl
- From: "Pedro Rocha" <pedro_jrocha hotmail com>
- To: xslt gnome org
- Subject: [xslt] Problems using functions with xsl
- Date: Mon, 08 Nov 2004 15:13:21 +0100
Hi,
I'm having problems using the extention functions with xsl.
I've got the following error messages:
xmlXPathCompOpEval: function testparam not found
XPath error : Unregistered function
xmlXPathCompiledEval: evaluation failed
runtime error: file file:///c%3A/temp/xml/prueba.xsl line 234 element
value-of
xsltValueOf: text copy failed
This is the xsl file:
------------------------------------------------------------------------------------------------------------------
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions"
extension-element-prefixes="func"
version="1.0">
<func:function name="func:testparam">
<xsl:param name="foo" select="'Test'"/>
<xsl:param name="bar" select="concat($foo, ' succeeded')"/>
<func:result select="$bar"/>
</func:function>
<xsl:template match="/">
<xsl:value-of select="func:testparam()" />
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------------------------------------------------
I had a similar problem when I was trying to use the exslt str functions...
it was because i didn't call the function exsltRegisterAll();
Any clue?
Thanks,
Pedro
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]