(PHP 4 >= 4.0.3)
xslt_output_begintransform -- Začít XSLT transformaci výstupu
Popis
void
xslt_output_begintransform
(string xslt_filename)
Tato funkce začne výstupní transformaci vašich dat. Od okamžiku, kdy
zavoláte xslt_output_begintransform() až do chvíle kdy
zavoláte xslt_output_endtransform() bude všechen výstup
transformován XSLT stylesheetem udaným v prvním argumentu.
Příklad 1.
Transformace výstupu XSLT stylesheetem pomocí DOM-XML funkcí pro
generování 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();
|
|