GNOME Bugzilla – Bug 465337
Un comprehensible "func:function is not a QName" is returned when using exslt
Last modified: 2007-08-11 00:35:59 UTC
Please describe the problem: With the following document (for which I do not see the problem), I obtain the error "func:function is not a QName" : <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 /> </xsl:stylesheet> I obtain the same error if I change the namespace of exstl functions to "foobar" (the error still says func:function even thought the is no reference to this prefix anywhere. Steps to reproduce: 1. Create the xsl document 2. run xsltproc using this stylesheet on a dummy xml file Actual results: I obtain an error : func:function is not a QName Expected results: Nothing (or maybe an error due to the fact that my function is not correclty defined since no func:result is given). This version of the document is just for testing and has been reduced to a minium. Does this happen every time? No, I have already succeeded in using exslt functions using the same processor... I have rewritten completely by hand the document (I thought the error might be related to an encoding problem). Other information:
The error message is saying that your function doesn't have a name. You should add another namespace in your stylesheet for your own personal functions (e.g. 'xmlns:my="http://mydomain.org"'), and give a name to your function (e.g. '<func:function name="my:myfunc" />'