Performance Tip: Multiple Transformations
multipletrans.php:
<?php
$dom = DomDocument::load("file.xml");
$xsl = DomDocument::load("file.xsl");
$proc = new XSLTProcessor();
$proc->importStylesheet($xsl);
for ($i = 0; $i < 5; $i++) {
$proc->setParameter(null,page",$i);
print $proc->transformToXml($dom);
}
xsl:keys
© copyright 2004 Bitflux GmbH