要安装什么以使XSLTProcessor工作


What to install to make XSLTProcessor work?

我使用的是PHP版本5.3.2-1ubuntu4.11
LibXML已启用:

dom
DOM/XML     enabled
DOM/XML API Version     20031129
libxml Version  2.7.6
HTML Support    enabled
XPath Support   enabled
XPointer Support    enabled
Schema Support  enabled
RelaxNG Support     enabled 

但是,当我写:$XP = new XSLTProcessor;时,解析器不知道我在说什么。我使用自动加载。。。找不到要包含的文件。我错过了什么?

--with-xsl[=DIR]

其中DIR是libxslt安装目录

当你做手册的时候/从源配置、制作、安装PHP

sudo apt-get install php5-xsl

可能工作