« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 31 for importStylesheet (0.002 sec.)
スタイルシートを取り込む 11712
« XSLTProcessor::hasExsltSupport XSLTProcessor::registerPHPFunctionNS » PHP Manual XSLTProcessor スタイルシートを取り込む 検索 XSLTProcessor::importStylesheet (PHP 5, PHP 7, PHP 8) XSLTProcessor::importStylesheet — スタイルシートを取り込む ... 説明 public function XSLTProcessor::importStylesheet ( object $stylesheet ): bool このメソッドは XSLTProcessor に変換のためのスタイルシートを取り込みます。 パラメータ styleshe ... 合、 ValueError の代わりに TypeError をスローするようになりました。 関連キーワード: XSLTProcessor スタイル シート stylesheet importStylesheet Document TypeError hasExsltSupport registerPHPFunctionNS DOMDocument SimpleXMLElement 成功 履歴 サポート ValueError スロー ...
https://man.mtool.work/php/8.3/xsltprocessor.importstylesheet.html
スタイルシートを取り込む 11599
« XSLTProcessor::hasExsltSupport XSLTProcessor::registerPHPFunctionNS » PHP Manual XSLTProcessor スタイルシートを取り込む 検索 XSLTProcessor::importStylesheet (PHP 5, PHP 7, PHP 8) XSLTProcessor::importStylesheet — スタイルシートを取り込む ... 説明 public function XSLTProcessor::importStylesheet ( object $stylesheet ): bool このメソッドは XSLTProcessor に変換のためのスタイルシートを取り込みます。 パラメータ styleshe ... lueError の代わりに TypeError をスローするようになりました。 関連キーワード: XSLTProcessor スタイル シート stylesheet 場合 importStylesheet オブジェクト Dom Document TypeError hasExsltSupport Search registerPHPFunctionNS function object bool メソッド 変換 パラメ ...
https://man.mtool.work/php/8.3/xsltprocessor.importstylesheet.html
URI に変換する 10968
« XSLTProcessor::transformToDoc XSLTProcessor::transformToXml » PHP Manual XSLTProcessor URI に変換する 検索 XSLTProcessor::transformToUri (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToUri — URI に変換する 説明 public function XSLTProcess ... or::transformToUri ( object $document , string $uri ): int XSLTProcessor::importStylesheet() メソッドで与えられたスタイルシートを適用し、 ソースノードを URI に変換します。 パラメータ document 変換される Dom\Docume ... l' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する $proc -> transformToURI ( $xml , 'file:///tmp/out.html' ); ?> 例2 Dom\Document を使ってH ... ); $xsl = Dom\XMLDocument :: createFromFile ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する $proc -> transformToURI ( $xml , 'file:///tmp/out.html' ); ?> 参考 XSLTProcessor::transf ...
https://man.mtool.work/php/8.3/xsltprocessor.transformtouri.html
ドキュメント に変換する 9609
« XSLTProcessor::setSecurityPrefs XSLTProcessor::transformToUri » PHP Manual XSLTProcessor ドキュメント に変換する 検索 XSLTProcessor::transformToDoc (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToDoc — ドキュメント に変換する 説明 public ... tion XSLTProcessor::transformToDoc ( object $document , ? string $returnClass = null ): DOMDocument | false XSLTProcessor::importStylesheet() メソッドで与えられたスタイルシートを適用し、 ソースノードをドキュメント (例: DOMDocument ) に変換します。 パラメータ doc ... l' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する echo trim ( $proc -> transformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力 ... ); $xsl = Dom\XMLDocument :: createFromFile ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する echo trim ( $proc -> transformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力 ...
https://man.mtool.work/php/8.3/xsltprocessor.transformtodoc.html
XML に変換する 9609
« XSLTProcessor::transformToUri GUI用の拡張モジュール » PHP Manual XSLTProcessor XML に変換する 検索 XSLTProcessor::transformToXml (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToXml — XML に変換する 説明 public function XSLTProcessor::tran ... sformToXml ( object $document ): string | null | false xsltprocessor::importStylesheet() メソッドで与えられたスタイルシートを適用し、 ソースノードを文字列に変換します。 パラメータ document 変換される Dom\Docum ... l' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to ... ); $xsl = Dom\XMLDocument :: createFromFile ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to ...
https://man.mtool.work/php/8.3/xsltprocessor.transformtoxml.html
libxml のエラー処理関数によるエラー処理 9221
« collection.xml および collection.xsl ファイルの例 XSLTProcessor » PHP Manual 例 libxml のエラー処理関数によるエラー処理 検索 libxml のエラー処理関数によるエラー処理 libxml にはエラー処理用の関数が用意されており、これらを使うと、 XSLT の処 ... !"/></li> </xsl:template> </xsl:stylesheet> 例3 エラーの捕捉と表示 以下の例は、エラーを含むスタイルシートで XSLTProcessor::importStyleSheet() を呼んだ際に発生する libxml のエラーを捕らえて表示するものです。 <?php $xmldoc = new DOMDocument (); $xsldoc = new DOMDo ... c -> loadXML ( 'fruits.xml' ); $xsldoc -> loadXML ( 'fruits.xsl' ); libxml_use_internal_errors ( true ); $result = $xsl -> importStyleSheet ( $xsldoc ); if (! $result ) { foreach ( libxml_get_errors () as $error ) { echo "Libxml error: { $error -> message } \n" ... ERROR!' 関連キーワード: libxml fruits fruit template Libxml XSLTProcessor xmldoc xsldoc errors collection stylesheet match importStyleSheet DOMDocument loadXML internal expression 用意 処理中 妥当 Apple Banana Cherry 無効 xmlns ...
https://man.mtool.work/php/8.3/xsl.examples-errors.html
新しい XSLTProcessor オブジェクトを作成する 9107
« XSLTProcessor XSLTProcessor::getParameter » PHP Manual XSLTProcessor 新しい XSLTProcessor オブジェクトを作成する 検索 XSLTProcessor::__construct (PHP 5, PHP 7, PHP 8) XSLTProcessor::__construct — 新しい XSLTProcessor オブジェクトを作成する ... d ( $xsl_filename ); $xmldoc = new DOMDocument (); $xmldoc -> load ( $xml_filename ); $xsl = new XSLTProcessor (); $xsl -> importStyleSheet ( $xsldoc ); echo $xsl -> transformToXML ( $xmldoc ); ?> 関連キーワード: XSLTProcessor construct xsldoc xmldoc DOMDocument ... load filename getParameter importStyleSheet transformToXML ...
https://man.mtool.work/php/8.3/xsltprocessor.construct.html
新しい XSLTProcessor オブジェクトを作成する 8978
« XSLTProcessor XSLTProcessor::getParameter » PHP Manual XSLTProcessor 新しい XSLTProcessor オブジェクトを作成する 検索 XSLTProcessor::__construct (PHP 5, PHP 7, PHP 8) XSLTProcessor::__construct — 新しい XSLTProcessor オブジェクトを作成する ... d ( $xsl_filename ); $xmldoc = new DOMDocument (); $xmldoc -> load ( $xml_filename ); $xsl = new XSLTProcessor (); $xsl -> importStyleSheet ( $xsldoc ); echo $xsl -> transformToXML ( $xmldoc ); ?> 関連キーワード: XSLTProcessor オブジェクト xsl construct xsldoc n ... ew xmldoc パラメータ DOMDocument load filename Search getParameter function php xml importStyleSheet echo transformToXML navigate ...
https://man.mtool.work/php/8.3/xsltprocessor.construct.html
URI に変換する 8849
« XSLTProcessor::transformToDoc XSLTProcessor::transformToXml » PHP Manual XSLTProcessor URI に変換する 検索 XSLTProcessor::transformToUri (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToUri — URI に変換する 説明 public function XSLTProcess ... or::transformToUri ( object $document , string $uri ): int XSLTProcessor::importStylesheet() メソッドで与えられたスタイルシートを適用し、 ソースノードを URI に変換します。 パラメータ document 変換される Dom\Docume ... l' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する $proc -> transformToURI ( $xml , 'file:///tmp/out.html' ); ?> 例2 Dom\Document を使ってH ... ); $xsl = Dom\XMLDocument :: createFromFile ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // XSL ルールを適用する $proc -> transformToURI ( $xml , 'file:///tmp/out.html' ); ?> 参考 XSLTProcessor::transf ...
https://man.mtool.work/php/8.3/xsltprocessor.transformtouri.html
XSLTProcessor クラス 8849
« libxml のエラー処理関数によるエラー処理 XSLTProcessor::__construct » PHP Manual XSL XSLTProcessor クラス 検索 XSLTProcessor クラス (PHP 5, PHP 7, PHP 8) はじめに クラス概要 class XSLTProcessor { /* プロパティ */ public bool $ doXInclude = ... $name ): string | false public function getSecurityPrefs (): int public function hasExsltSupport (): bool public function importStylesheet ( object $stylesheet ): bool public function registerPHPFunctionNS ( string $namespaceURI , string $name , callable $calla ... セキュリティ設定を取得する XSLTProcessor::hasExsltSupport — PHP が EXSLT をサポートしているかどうかを判定する XSLTProcessor::importStylesheet — スタイルシートを取り込む XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数として登録する XSL ... oneDocument maxTemplateDepth maxTemplateVars setParameter document construct getParameter getSecurityPrefs hasExsltSupport importStylesheet registerPHPFunctionNS callable registerPHPFunctions removeParameter setProfiling setSecurityPrefs transformToDoc transform ...
https://man.mtool.work/php/8.3/class.xsltprocessor.html
PREV 1 2 3 4 NEXT