(PHP 5)
XSLTProcessor::transformToUri — تبدیل به URI
تبدیل گره منبع به URI نشاندهنده stylesheet داده شده توسط XSLTProcessor::importStylesheet().
سند تبدیل شده.
بازگرداندن تعداد بایتهای نوشته شده یا FALSE اگر خطا رخ داده باشد.
Example #1 تبدیل به فایل HTML
<?php
// Load the XML source
$xml = new DOMDocument;
$xml->load('collection.xml');
$xsl = new DOMDocument;
$xsl->load('collection.xsl');
// Configure the transformer
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
$proc->transformToURI($xml, 'file:///tmp/out.html');
?>