(No version information available, might be only in CVS)
XSLTProcessor::transformToURI — Transforme en URI
Transforme le noeud source en une URI en y appliquant la feuille de style donnée par la méthode XSLTProcessor::importStylesheet .
Le document transformé.
Retourne le nombre d'octets écrits ou FALSE si une erreur survient.
Exemple 2834. Transformation en un fichier HTML
<?php
// Chargement du source XML
$xml
= new
DOMDocument
;
$xml
->
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'
);
?>
XSLTProcessor::transformToDoc |
XSLTProcessor::transformToXML |