suche nach in der

XSLTProcessor::transformToXML> <XSLTProcessor::transformToDoc
Last updated: Fri, 25 May 2012

view this page in

XSLTProcessor::transformToURI

(PHP 5)

XSLTProcessor::transformToURITransformierung zu einer URI

Beschreibung

int transformToURI ( DOMDocument $doc , string $uri )

Transformiert die Quell-DOMNode unter Verwendung des mittels XSLTProcessor::importStylesheet()-Methode importierten Stylesheets zu einer gegebene URI.

Parameter-Liste

doc

Die zu verarbeitende DOMNode.

uri

Die URI für das Ziel der Transformation.

Rückgabewerte

Liefert die Anzahl geschriebener Bytes zurück oder FALSE falls ein Fehler aufgetreten ist.

Beispiele

Beispiel #1 Transformierung in eine HTML-Datei

<?php

// XML-Quellen laden
$xml = new DOMDocument;
$xml->load('collection.xml');

$xsl = new DOMDocument;
$xsl->load('collection.xsl');

// Prozessor instanziieren und konfigurieren
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // XSL Document importieren

$proc->transformToURI($xml'file:///tmp/out.html');

?>

Siehe auch



add a note add a note User Contributed Notes
XSLTProcessor::transformToURI
There are no user contributed notes for this page.