Results of 1 - 8 of about 8 for xmldoc (0.008 sec.)
- 新しい XSLTProcessor オブジェクトを作成する 12073
- « XSLTProcessor XSLTProcessor::getParameter » PHP Manual XSLTProcessor 新しい XSLTProcessor オブジェクトを作成する 検索 XSLTProcessor::__construct (PHP 5, PHP 7, PHP 8) 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 ); ?> 関連キーワード: XSLTProcessor construct xsldoc xmldoc DOMDocument load filename getParameter importStyleSheet transf ...
-
https://man.mtool.work/php/8.3/xsltprocessor.construct.html
- 新しい XSLTProcessor オブジェクトを作成する 11730
- « XSLTProcessor XSLTProcessor::getParameter » PHP Manual XSLTProcessor 新しい XSLTProcessor オブジェクトを作成する 検索 XSLTProcessor::__construct (PHP 5, PHP 7, PHP 8) 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 ); ?> 関連キーワード: XSLTProcessor オブジェクト xsl construct xsldoc new xmldoc パラメータ DOMDocument load filename Sear ...
-
https://man.mtool.work/php/8.3/xsltprocessor.construct.html
- libxml のエラー処理関数によるエラー処理 9055
- « collection.xml および collection.xsl ファイルの例 XSLTProcessor » PHP Manual 例 libxml のエラー処理関数によるエラー処理 検索 libxml のエラー処理関数によるエラー処理 libxml にはエラー処理用の関数が用意されており、これらを使うと、 XSLT の処
... むスタイルシートで XSLTProcessor::importStyleSheet() を呼んだ際に発生する libxml のエラーを捕らえて表示するものです。 <?php $xmldoc = new DOMDocument (); $xsldoc = new DOMDocument (); $xsl = new XSLTProcessor (); $xmldoc -> loadXML ( 'fruits.xml' ); $xsl ... ror: { $error -> message } \n" ; } } libxml_use_internal_errors ( false ); if ( $result ) { echo $xsl -> transformToXML ( $xmldoc ); } ?> 上の例の出力は、 たとえば以下のようになります。 Libxml error: Invalid expression Libxml error: compilation error: ... 'THIS IS A DELIBERATE ERROR!' 関連キーワード: xsl libxml fruits fruit error select template Libxml xml XSLTProcessor value xmldoc new xsldoc errors result collection stylesheet match ul ...
-
https://man.mtool.work/php/8.3/xsl.examples-errors.html
- libxml のエラー処理関数によるエラー処理 8874
- « collection.xml および collection.xsl ファイルの例 XSLTProcessor » PHP Manual 例 libxml のエラー処理関数によるエラー処理 検索 libxml のエラー処理関数によるエラー処理 libxml にはエラー処理用の関数が用意されており、これらを使うと、 XSLT の処
... むスタイルシートで XSLTProcessor::importStyleSheet() を呼んだ際に発生する libxml のエラーを捕らえて表示するものです。 <?php $xmldoc = new DOMDocument (); $xsldoc = new DOMDocument (); $xsl = new XSLTProcessor (); $xmldoc -> loadXML ( 'fruits.xml' ); $xsl ... ror: { $error -> message } \n" ; } } libxml_use_internal_errors ( false ); if ( $result ) { echo $xsl -> transformToXML ( $xmldoc ); } ?> 上の例の出力は、 たとえば以下のようになります。 Libxml error: Invalid expression Libxml error: compilation error: ... compile select expression 'THIS IS A DELIBERATE ERROR!' 関連キーワード: libxml fruits fruit template Libxml XSLTProcessor xmldoc xsldoc errors collection stylesheet match importStyleSheet DOMDocument loadXML internal expression 用意 処理中 妥当 Apple ...
-
https://man.mtool.work/php/8.3/xsl.examples-errors.html
- PHP 関数を XSLT 関数として利用できるようにする 8043
- « XSLTProcessor::registerPHPFunctionNS XSLTProcessor::removeParameter » PHP Manual XSLTProcessor PHP 関数を XSLT 関数として利用できるようにする 検索 XSLTProcessor::registerPHPFunctions (PHP 5 >= 5.0.4, PHP 7, PHP 8) XSLTProcessor::registerP
... ction('ucfirst',string(uid))"/> </td></tr> </xsl:for-each> </table> </body></html> </xsl:template> </xsl:stylesheet> EOB; $xmldoc = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new ... XSLTProcessor (); $proc -> registerPHPFunctions (); $proc -> importStyleSheet ( $xsldoc ); echo $proc -> transformToXML ( $xmldoc ); ?> 参考 DOMXPath::registerPhpFunctions() - PHP の関数を XPath 関数として登録する 関連キーワード: xsl XSLTProcessor コー ... 場合 user uid registerPHPFunctions callable バック ValueError php proc string functions パラメータ xml allusers html select xmldoc ...
-
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctions.html
- PHP 関数を XSLT 関数として利用できるようにする 8043
- « XSLTProcessor::registerPHPFunctionNS XSLTProcessor::removeParameter » PHP Manual XSLTProcessor PHP 関数を XSLT 関数として利用できるようにする 検索 XSLTProcessor::registerPHPFunctions (PHP 5 >= 5.0.4, PHP 7, PHP 8) XSLTProcessor::registerP
... ction('ucfirst',string(uid))"/> </td></tr> </xsl:for-each> </table> </body></html> </xsl:template> </xsl:stylesheet> EOB; $xmldoc = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new ... XSLTProcessor (); $proc -> registerPHPFunctions (); $proc -> importStyleSheet ( $xsldoc ); echo $proc -> transformToXML ( $xmldoc ); ?> 参考 DOMXPath::registerPhpFunctions() - PHP の関数を XPath 関数として登録する 関連キーワード: XSLTProcessor user reg ... isterPHPFunctions callable バック ValueError proc functions allusers xmldoc xsldoc スタイル シート TypeError encoding stylesheet xmlns template body table DOMDocument loadXML registerPHPFunctionNS r ...
-
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctions.html
- PHP の関数を、名前空間付きの XSLT 関数として登録する 7880
- « XSLTProcessor::importStylesheet XSLTProcessor::registerPHPFunctions » PHP Manual XSLTProcessor PHP の関数を、名前空間付きの XSLT 関数として登録する 検索 XSLTProcessor::registerPHPFunctionNS (PHP >= 8.4.0) XSLTProcessor::registerPHPFunctio
... ="my:uppercase(string(uid))"/> </td> </tr> </xsl:for-each> </table> </body></html> </xsl:template> </xsl:stylesheet> EOB; $xmldoc = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new ... , 'count' , fn (array $arg1 ) => count ( $arg1 )); $proc -> importStyleSheet ( $xsldoc ); echo $proc -> transformToXML ( $xmldoc ); ?> 参考 DOMXPath::registerPhpFunctionNS() - PHP の関数を、名前空間付きの XPath 関数として登録する DOMXPath::registerPhp ... : XSLTProcessor 空間 user 登録 registerPHPFunctionNS proc callable スタイル シート ノード バック ValueError allusers count xmldoc xsldoc namespaceURI encoding stylesheet xmlns template body table uppercase DOMDocument ...
-
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctionns.html
- PHP の関数を、名前空間付きの XSLT 関数として登録する 6524
- « XSLTProcessor::importStylesheet XSLTProcessor::registerPHPFunctions » PHP Manual XSLTProcessor PHP の関数を、名前空間付きの XSLT 関数として登録する 検索 XSLTProcessor::registerPHPFunctionNS (PHP >= 8.4.0) XSLTProcessor::registerPHPFunctio
... ="my:uppercase(string(uid))"/> </td> </tr> </xsl:for-each> </table> </body></html> </xsl:template> </xsl:stylesheet> EOB; $xmldoc = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new ... , 'count' , fn (array $arg1 ) => count ( $arg1 )); $proc -> importStyleSheet ( $xsldoc ); echo $proc -> transformToXML ( $xmldoc ); ?> 参考 DOMXPath::registerPhpFunctionNS() - PHP の関数を、名前空間付きの XPath 関数として登録する DOMXPath::registerPhp ...
-
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctionns.html
PREV
1
NEXT