After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 465337 - Un comprehensible "func:function is not a QName" is returned when using exslt
Un comprehensible "func:function is not a QName" is returned when using exslt
Status: RESOLVED NOTABUG
Product: libxslt
Classification: Platform
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-10 09:55 UTC by Benjamin Habegger
Modified: 2007-08-11 00:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benjamin Habegger 2007-08-10 09:55:31 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:
Comment 1 William M. Brack 2007-08-11 00:35:59 UTC
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" />'