5

Possible Duplicate:
Will XPath 2.0 and/or XSLT 2.0 be implemented in PHP?

I think I'm using xpath 1.0 because I don't have the lower-case() function. My PHP version is 5.3.8. How do I update xpath to the 2.0 version?

Community
  • 1
  • 1
Jürgen Paul
  • 13,381
  • 25
  • 90
  • 131
  • 3
    Alternative: http://php.net/manual/en/domxpath.registerphpfunctions.php – hakre Jun 13 '12 at 21:12
  • You might have some more luck cross-posting to serverfault. – hafichuk Jun 13 '12 at 21:13
  • Use a magic wand -- there is nothing like "upgrade" and AFAIK PHP is only integrated with an XPath 1.0 engine. If there is a way to use from PHP an external, 3rd party product, you may choose to use any existing XSLT 2.0 or XQuery processor. – Dimitre Novatchev Jun 14 '12 at 04:32

1 Answers1

12

Unfortunately no-one has upgraded the PHP XPath library to version 2.0. If you have lots of spare time or money, you would to do the community a great service by undertaking this work. If you haven't got lots of spare time or money, then hopefully you will understand why no-one else has taken it on. Sadly, this is the downside to free software; there's often no investment going into it.

Michael Kay
  • 147,186
  • 10
  • 83
  • 148