XSLTProcessor::transformToUri
Transforme en URI
&reftitle.description;
public int
XSLTProcessor::transformToURI
DOMDocumentdoc
stringuri
Transforme le nœud source en une URI en y appliquant la feuille de style donnée par
la méthode XSLTProcessor::importStylesheet.
&reftitle.parameters;
doc
Le document à transformer.
uri
L'URL pour la transformation.
&reftitle.returnvalues;
Retourne le nombre d'octets écrits ou &false; si une erreur survient.
&reftitle.examples;
Transformation en un fichier HTML
load('collection.xml');
$xsl = new DOMDocument;
$xsl->load('collection.xsl');
// Configuration du transformateur
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attachement des règles xsl
$proc->transformToURI($xml, 'file:///tmp/out.html');
?>
]]>
&reftitle.seealso;
XSLTProcessor::transformToDoc
XSLTProcessor::transformToXml