PHP Doku:: Creates a DomXsltStylesheet Object from an XSL document in a file - function.domxml-xslt-stylesheet-file.html

Verlauf / Chronik / History: (23) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzXML-ManipulationDOM-XMLDOM-XML-Funktionendomxml_xslt_stylesheet_file

Ein Service von Reinhard Neidl - Webprogrammierung.

DOM-XML-Funktionen

<<domxml_xslt_stylesheet_doc

domxml_xslt_stylesheet>>

domxml_xslt_stylesheet_file

(PHP 4 >= 4.2.0)

domxml_xslt_stylesheet_file Creates a DomXsltStylesheet Object from an XSL document in a file

Beschreibung

DomXsltStylesheet domxml_xslt_stylesheet_file ( string $xsl_file )

Creates a DomXsltStylesheet object from the given XSL file.

Parameter-Liste

xsl_file

The path to the XSL document, as a string.

Rückgabewerte

Returns a new instance of DomXsltStylesheet.

Migrating to PHP 5

Call XSLTProcessor::importStylesheet() with DOMDocument::load($xsl_file) as parameter.

Siehe auch


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
info at sgonda dot de
30.10.2003 8:38
Here's is a example for use:

<?php

$xmldoc
= domxml_open_file("dom.xml");
$xsldoc  = domxml_xslt_stylesheet_file ("dom.xsl");
$result   = $xsldoc->process($xmldoc);
 print
$result->dump_mem();

?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)