(PHP 4 >= 4.0.3)
xslt_output_begintransform -- 出力の XSLT 変換を開始する
説明
void
xslt_output_begintransform
(string xslt_filename)
警告 |
この関数は、
実験的なステータスにあります。これは、この関数の
動作、関数名、ここで書かれていること全てがPHPの将来のバージョンで予告
なく変更される可能性があることを意味します。注意を喚起するとともに自分
のリスクでこの関数を使用して下さい。 |
この関数は、データ出力の変換を開始します。
xslt_output_begintransform() をコールした場所
から、xslt_output_endtransform() をコールした
場所まで、最初の引数で指定したXSLTスタイルシートにより全ての出力
は変換されます。
例 1
XSLTスタイルシートによる出力の変換、xml 生成用にDOM-XML関数を使
用する
<?php
$xsl_file = "article.xsl";
xslt_output_begintransform($xsl_file);
$doc = new_xmldoc('1.0');
$article = $doc->new_root('article');
$article->new_child('title', 'The History of South Tyrol');
$article->new_child('author', 'Sterling Hughes');
$article->new_child('body', 'Back after WWI, Italy gained South Tyrol from
Austria. Since that point nothing interesting has
happened');
echo $doc->dumpmem();
xslt_output_endtransform();
|
|