(PHP 4 >= 4.0.3)
xslt_create — 新規の XSLT プロセッサを作成する
新規に XSLT プロセッサリソースを作成し、返します。このリソースは、 他の XSLT 関数による処理で使用されます。
成功した場合に XSLT プロセッサリンク ID、 エラー時に FALSE を返します。
例1 xslt_create() の例
<?php
function xml2html($xmldata, $xsl)
{
/* $xmldata -> あなたの XML */
/* $xsl -> XSLT ファイル */
$path = 'include';
$arguments = array('/_xml' => $xmldata);
$xsltproc = xslt_create();
xslt_set_encoding($xsltproc, 'ISO-8859-1');
$html =
xslt_process($xsltproc, 'arg:/_xml', "$path/$xsl", NULL, $arguments);
if (empty($html)) {
die('XSLT processing error: '. xslt_error($xsltproc));
}
xslt_free($xsltproc);
return $html;
}
?>
NPO法人の設立(東京・大阪) 東京や大阪などNPO法人を設立する場合の注意点等を紹介
不動産・賃貸・マンション 不動産・賃貸・マンションに関する用語集です。
堺市の入院・内科大阪の賃貸探し 大阪で賃貸を探している方は大阪ホームへ
東京の賃貸マンション 東京で賃貸を探すなら東京賃貸.orgへ