CakeFest 2024: The Official CakePHP Conference

XSLTProcessor::__construct

(PHP 5, PHP 7, PHP 8)

XSLTProcessor::__construct新しい XSLTProcessor オブジェクトを作成する

説明

XSLTProcessor::__construct()

新しい XSLTProcessor オブジェクトを作成します。

パラメータ

この関数にはパラメータはありません。

例1 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