Project

Profile

Help

Bug #4367

closed

Cannot find a 0-argument function named Q{http://saxon.sf.net/}line-number() with Saxon-PE/C product

Added by O'Neil Delpratt over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
PHP API
Start date:
2019-10-29
Due date:
% Done:

0%

Estimated time:
Found in version:
1.2.0
Fixed in version:
Platforms:

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
Actions #1

Updated by O'Neil Delpratt over 4 years ago

  • Description updated (diff)
Actions #2

Updated by O'Neil Delpratt over 4 years ago

  • 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.

Actions #3

Updated by O'Neil Delpratt over 4 years ago

  • 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.
Actions #4

Updated by O'Neil Delpratt over 4 years ago

  • Status changed from AwaitingInfo to Closed

Please register to edit this issue

Also available in: Atom PDF