(4.0.3 - 4.0.6 only)
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(); |
|