[PHP-users 4310] Re: xslt_process 関数でエラー

Yamaguchi Hiroshi php-users@php.gr.jp
Sat, 15 Dec 2001 09:39:00 +0900 (JST)


山口です。
ご意見ありがとうございます。

>間違っているかもしれませんが、もし PHP4.1.0 以前
>から xslt_process 関数をお使いでしたら、PHP4.1.0
>から関数の引数が増えているので、変更すれば良いと
>思います。
はい。XSLTプロセッサへのハンドラが第一引数に
追加されていましたので、変更してみました。

> Markusさんかかなり精力的にBugFixしています。まず、 
> http://bugs.php.net/
> のバグデータベースを検索する事をお勧めします。
> bug dbに載っていない物はレポートすると彼が直してくれ
> ます。(多分:)
探してみたら、ありました(以下抜粋)。
-------------------------------------------
In order to use utf-8 you must set the encoding from
within your <?xml ?> block.. If
you want to use the xslt_set_encoding() function than you
must compile sablotron itself
with encoding support.
not a bug.
-------------------------------------------
ただ、<?xml ?>宣言にはUTF-8をセットしていますし、
sablotronも以下のURLから「Sablotron 0.71 - Windows
binary」をダウンロードして、最新のsablot.dllを
システムフォルダにセットしているのですが…
http://www.gingerall.com/charlie/ga/xml/d_sab.xml
やはり、
Warning: xslt_set_encoding() is not supported in this PHP
build in c:\apache\htdocs\xslt.php on line 11
が出てしまいます。

もしかして、sablotronのソースを入手して、コンパイル、
DLLの生成までやらないとダメでしょうか?


__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/