views:

446

answers:

2

The question was asked but deleted by the asker before it received an answer. Because I believe the question is sound and legitimate and serves a purpose, I'm asking it again and provide the answer I already wrote for the original q.

Will XPath 2.0 and/or XSLT 2.0 be implemented in PHP some day or are there any plans?

+1  A: 

As soon as libxml and libxslt support them most likely.

Ignacio Vazquez-Abrams
Yes, but the developers of those libs have no plans thereof, unfortunately...
Abel
+3  A: 

The (indirect) answer to that question can be found in a thread that I recently started on the XSL mailing list about the general status of XSLT 2.0 development overall.

While the answer does not involve PHP, the current status of development for XSLT 2.0 (and XPath 2.0) means that there are no plans currently, so there can't be any for PHP either. To use XPath 2.0, you need to include Saxon 9 and inter-operate with the Java libs. Luckily, someone created a clear tutorial how you can do just that with PHP.

Even if someone started out today writing an open source native library for XPath 2.0 and XSLT 2.0, it will take quite some time before it reaches production quality.


EDIT: Florent Georges (from XSL-List) has taken my compiled list of available XSLT 2.0 processors and put them online in one convenient spot on his website.

Abel
@Abel: Is subscribing to the XSL list worthwhile? I fear my GMail account might get overrun by an onslaught of spam and that I will never be happy again once I have subscribed…
Tomalak
I've personally never received spam through XSL-list, they have a very strong filter and human monitoring. Of course, your e-mail will be publicly visible and that may result in (more) unsolicited mail. But with a good spam filter that's nowadays mandatory, I only receive one spam message a week. What I usually recommend: use a special address for all your list subscriptions or other public profiles.
Abel
PS: "is it worthwhile": definitely! Known XSLT experts as the XSLT 2.0 W3C Chief Editor Michael Kay, and others like Dimitre Novatchev, Andrew Welch, G. Ken Holman (also XSL-FO) and David Carlisle are very active and give solid advice. Make sure you read the FAQ before asking and you'll be very welcomed on the list. Will I be seeing you there?
Abel
@Abel: I'm more interested in answering than asking, but I'm definitively thinking about it. Stack Overflow is a little weak on the XSLT side of things, only a few questions per day.
Tomalak