Bug #4367
closed
Cannot find a 0-argument function named Q{http://saxon.sf.net/}line-number() with Saxon-PE/C product
Description
Reported by user:
We have put saxon-license.lic file to the same directory where libsaxonpec.so exists and we have added SAXONC_HOME environment variable pointing to same dir.
When we try use, e.g. saxon:line-number() we get an error:
Static error in {saxon:line-number()} in expression in xsl:value-of/@select on line 167 column 57 of my_test.xsl:
XPST0017: Cannot find a 0-argument function named Q{http://saxon.sf.net/}line-number().
Calls to extension functions are not permitted without a Saxon license. Saxon extension functions require a Saxon-PE or Saxon-EE license.
saxonProc->version returns:
Saxon/C 1.2.0 running with Saxon-PE 9.9.1.5C from Saxonica
- Description updated (diff)
- Category changed from Saxon-C Internals to PHP API
- Status changed from New to In Progress
Narrowing down the issue to the PHP API as the saxon:line-number()
functions works in the C++ API as it should with a licensed product.
- Status changed from In Progress to AwaitingInfo
After investigating this issue with PHP I think this is actually not a bug.
I suggested the user to check the following:
- Directory permission not set to the correct user/group. InitiallyI installed the product as root. Running as a normal user can cause problems. I changed it to my username but not sure if this causes any issue but it might. Under PHP there is normally a specific username given.
- SAXONC_HOME not set correctly and may be pointing to an old Saxon/C library - Please check this too.
- license file must be in the correct directory to the SAXONC_HOME. Also check that the license file is valid and within date for this release.
- PHP extension library not been rebuilt for the new Saxon/C release. I think using an old release of the PHP extension can cause problems.
- Status changed from AwaitingInfo to Closed
Please register to edit this issue
Also available in: Atom
PDF