XSL XML PhP Yandex

AcidBurn

Новичок
XSL XML PhP Yandex

Здраствуйте,
Вот прочитал масссу инфы по ХСЛ ХМЛ и никак не понял как
для создания поиска пропарсить ХМЛ с помощу ХСЛ шаблона =(

Вот например зделал запрос : http://ilang.fokyc.net/index.php
и есть файл ХСЛ http://ilang.fokyc.net/test.xsl

Как мне вывести результат поиска по шаблону ?

Мб дадите ссылочки на нужную инфу ?
На хостинге пхп 5..
ЗЫ: на хостинг невозможно PEAR установить...
Спасибо. ;)
 

AcidBurn

Новичок
PHP Fatal error: Call to undefined function xslt_create() in /hsphere/local/home/acidburn/#######.net/search.php on line 47

ПхПинфо:
'./configure' '--localstatedir=/var/hsphere/php' '--prefix=/hsphere/shared/php5' '--with-bz2' '--enable-ctype' '--enable-dba' '--enable-ftp' '--with-gettext=/hsphere/shared' '--enable-mbstring=all' '--with-gd' '--with-mhash=/hsphere/shared' '--with-mcrypt=/hsphere/shared' '--with-mime_magic=/hsphere/local/config/httpd/magic' '--with-openssl=/usr' '--enable-overload' '--enable-posix' '--enable-session' '--enable-sockets' '--enable-standard' '--enable-tokenizer' '--with-xml=/hsphere/shared' '--with-xsl=/hsphere/shared' '--with-zip=/hsphere/shared' '--with-zlib' '--with-freetype-dir=/hsphere/shared' '--with-png-dir=/hsphere/shared' '--with-jpeg-dir=/hsphere/shared' '--with-expat-dir=/hsphere/shared' '--with-libxml-dir=/hsphere/shared' '--enable-gd-native-ttf' '--with-ttf' '--enable-mbstr-enc-trans' '--with-expat-dir=/hsphere/shared' '--with-xslt-sablot=/hsphere/shared' '--with-gnu-ld' '--with-curl=shared,/hsphere/shared' '--with-curlwrappers' '--with-dom=shared,/hsphere/shared' '--with-dom-xslt=/hsphere/shared' '--with-dom-exslt=/hsphere/shared' '--with-dom=shared,/hsphere/shared' '--with-fileinfo=shared,/hsphere/shared' '--with-gmp=shared,/hsphere/shared' '--with-mcal=shared,/hsphere/shared' '--with-mysql=shared,/usr' '--with-mysqli=shared' '--with-pgsql=shared,/usr' '--with-sqlite=shared' '--with-xmlrpc=shared' '--enable-track-vars' '--enable-trans-sid' '--enable-memory-limit' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/hsphere/local/config/httpd/php5' '--with-config-file-scan-dir=/hsphere/local/config/httpd/php5/php.d' '--enable-magic-quotes' '--with-pear=/hsphere/shared/apache/libexec/php5ext/php' '--with-mime-magic=/hsphere/local/config/httpd/mime.types' '--with-inifile' '--with-flatfile' '--with-kerberos' '--disable-pdo' '--with-imap-ssl'


в чем проблема не подскажите ?*
 

AcidBurn

Новичок
Спасибо, но у меня немного проблематично с Анг.,
что мне нужно зделать чтоб xslt_create() заработал ?,
извеняюсь что задаю такие вопросы но просто очень нужно все ето зделать =(

PHP Version 5.2.5


http://ilang.fokyc.net/1.php - phpinfo();
 

AcidBurn

Новичок
Спрасибо ознакомился, переделал, но теперь

Скрипт:

PHP:
 <?php

$doc = new DOMDocument();
$xsl = new XSLTProcessor();

$doc->load('test.xsl');
$xsl->importStyleSheet($doc);

$doc->load('index.php');
echo $xsl->transformToXML($doc);

?>
XSL взят с яндекса
на выходе просто текст не в ХТМЛ :

mode=.attr=.groups-on-page=.docs-in-group=.curcateg= mode%3D.attr%3D.groups-on-page%3D.docs-in-group%3D.curcateg%3D Яndex: список найденных документов .k {color:black} hr {color: #C5C8D0} p {margin : 0;} Запрос: искать в найденном Результат поиска: документов Статистика слов: Copyright © 1997&#151;2003 Яndex | Группы документов Документы - из . Страницы: << Назад | Дальше >> , Кб б , - - , : : ***




А теперь в чем может быть проблема.
Спасибо что выслушали начинающего ПхПшника

-~{}~ 22.03.08 12:22:

PS: мб ето проблема в кодировках ?

ХМЛ файл - <?xml version="1.0" encoding="utf-8" ?>
а ХСЛ -
<?xml version="1.0" encoding="windows-1251" ?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">

-~{}~ 22.03.08 23:56:

Всем спасибо, сменил хостинг =)
 
Сверху