PHP 8.1.30 Released!

XSLTProcessor::__construct

(PHP 5, PHP 7, PHP 8)

XSLTProcessor::__constructCria um novo objeto XSLTProcessor

Descrição

XSLTProcessor::__construct()

Cria um novo objeto XSLTProcessor.

Parâmetros

Esta função não possui parâmetros.

Exemplos

Exemplo #1 Criando um XSLTProcessor

<?php

$xsldoc
= new DOMDocument();
$xsldoc->load($xsl_filename);

$xmldoc = new DOMDocument();
$xmldoc->load($xml_filename);

$xsl = new XSLTProcessor();
$xsl->importStyleSheet($xsldoc);
echo
$xsl->transformToXML($xmldoc);

?>

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top