« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 11 for xslt (0.003 sec.)
XSL | PHP 8.3 11931
XSL はじめに XSL 拡張モジュールは、XSL の標準規格を実装したもので、 » libxslt ライブラリ を用いて » XSLT 変換 を行います。 インストール/設定 要件 インストール手順 定義済み定数 例 collection.xml および collection.xsl ファイルの例 libxml のエ ... ラー処理関数によるエラー処理 XSLTProcessor — XSLTProcessor クラス XSLTProcessor::__construct — 新しい XSLTProcessor オブジェクトを作成する XSLTProcessor::ge ... tParameter — パラメータの値を取得する XSLTProcessor::getSecurityPrefs — セキュリティ設定を取得する XSLTProcessor::hasExsltSupport — PHP が EXSLT をサポートしているか ... どうかを判定する XSLTProcessor::importStylesheet — スタイルシートを取り込む XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの ...
https://man.mtool.work/php/8.3/book.xsl.html
yaz_record — レコードを返す | PHP 8.3 10295
yaz_record (PHP 4 >= 4.0.1, PECL yaz >= 0.9.0) yaz_record — レコードを返す 説明 function yaz_record ( resource $id , int $pos , string $type ): string yaz_record() 関数は、現在の結果セットの pos で指定した位置にあるレコードを調べます。 パラ ... は string と似ていますが、 MARC レコードが MARCXML に変換される点が違います。 このフォーマットは、レコードが XML パーサーや XSLT プロセッサに 渡される場合に役立ちます。 raw レコードは、その本来のフォーマットのままで返されます。 MARC、XML および SUTRS ... りません) に変換します。 <?php $rec = yaz_record ( $id , $p , "xml; charset=marc-8,utf-8" ); ?> レコード $rec は Sablotron XSLT を使用して 以下のように処理可能です。 <?php $xslfile = 'display.xsl' ; $processor = xslt_create (); $parms = array( '/_xml ... ' => $rec ); $res = xslt_process ( $processor , 'arg:/_xml' , $xslfile , NULL , $parms ); xslt_free ( $processor ); $res = preg_replace ( "'</?html ...
https://man.mtool.work/php/8.3/function.yaz-record.html
XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数と... 9815
XSLTProcessor::registerPHPFunctionNS (PHP >= 8.4.0) XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数として登録する 説明 public function XSLTProcessor::registerPHPFunctionNS ( string $namespaceURI , string $name ... , callable $callable ): void このメソッドは、PHP の関数を名前空間付きの XSLT 関数として、 XSL スタイルシート中で使えるようにします。 パラメータ namespaceURI 名前空間の URI name 名前空間の中での、ロー ... = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new XSLTProcessor (); $proc -> registerPHPFunctionNS ( 'urn:my.ns' , 'uppercase' , strtoupper (...)); $proc -> registerPHPFunctionN ... の関数を、名前空間付きの XPath 関数として登録する DOMXPath::registerPhpFunctions() - PHP の関数を XPath 関数として登録する XSLTProcessor::registerPhpFunctions() - PHP 関数を XSLT 関数として利用できるようにする 他のマニュアルの関連ページ Linux JM proc ...
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctionns.html
XSLTProcessor::setParameter — パラメータの値を設定する | PHP 8.3 9815
XSLTProcessor::setParameter (PHP 5, PHP 7, PHP 8) XSLTProcessor::setParameter — パラメータの値を設定する 説明 public function XSLTProcessor::setParameter ( string $namespace , string $name , string $value ): bool public function XSLTProcess ... or::setParameter ( string $namespace , array $options ): bool XSLTProcessor を使った変換のための 1 つあるいは多くのパラメータの値を設定します。 もしパラメータがスタイルシートに存在しない場合 ... 、無視されます。 パラメータ namespace XSLT パラメータの名前空間 URI を指定します。 name XSLT パラメータのローカル名を指定します。 value XSLT パラメータの新しい値を指 ... er Parmentier' => 'olivier' ); $xsl = new DOMDocument ; $xsl -> load ( 'collection.xsl' ); // 変換の設定を行う $proc = new XSLTProcessor ; $proc -> importStyleSheet ( $xsl ); // attach the xsl rules foreach ( $collections as $name => $file ) { // XML ...
https://man.mtool.work/php/8.3/xsltprocessor.setparameter.html
XSLTProcessor::registerPHPFunctions — PHP 関数を XSLT 関数として利用できるよう... 9584
XSLTProcessor::registerPHPFunctions (PHP 5 >= 5.0.4, PHP 7, PHP 8) XSLTProcessor::registerPHPFunctions — PHP 関数を XSLT 関数として利用できるようにする 説明 public function XSLTProcessor::registerPHPFunctions ( array | string | null $functi ... ons = null ): void このメソッドは、PHP 関数を XSL スタイルシートでの XSLT 関数として利用できるようにします。 警告 functions のデフォルトは null です。 つまり、デフォルトのままこのメソッドを呼び出す ... と、 すべての PHP 関数にアクセスできるようになります。 パラメータ functions このパラメータは、XSLT からコールされる信頼できる関数のみを許可します。 このパラメータは、以下のいずれかになります: null (すべての関数を許可する) ... = new DOMDocument (); $xmldoc -> loadXML ( $xml ); $xsldoc = new DOMDocument (); $xsldoc -> loadXML ( $xsl ); $proc = new XSLTProcessor (); $proc -> registerPHPFunctions (); $proc -> importStyleSheet ( $xsldoc ); echo $proc -> transformToXML ( $xmld ...
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctions.html
XSLTProcessor::getParameter — パラメータの値を取得する | PHP 8.3 9353
XSLTProcessor::getParameter (PHP 5, PHP 7, PHP 8) XSLTProcessor::getParameter — パラメータの値を取得する 説明 public function XSLTProcessor::getParameter ( string $namespace , string $name ): string | false パラメータがあらかじめ XSLTProces ... sor::setParameter() で設定されている場合、 それを取得します。 パラメータ namespace XSLT パラメータの名前空間 URI を指定します。 name XSLT パラメータのローカル名を指定します。 戻り値 パラメータの値 (文字列)、ある ... た。 namespace が空でなく、かつ name が Clark 記法または QName 形式の場合、 ValueError がスローされるようになりました。 参考 XSLTProcessor::setParameter() - パラメータの値を設定する XSLTProcessor::removeParameter() - パラメータを削除する ...
https://man.mtool.work/php/8.3/xsltprocessor.getparameter.html
XSLTProcessor::removeParameter — パラメータを削除する | PHP 8.3 9353
XSLTProcessor::removeParameter (PHP 5, PHP 7, PHP 8) XSLTProcessor::removeParameter — パラメータを削除する 説明 public function XSLTProcessor::removeParameter ( string $namespace , string $name ): bool もしパラメータが設定されていれば削除し ... ます。これにより、 プロセッサはスタイルシートで指定されるようなパラメータに デフォルト値を使用します。 パラメータ namespace XSLT パラメータの名前空間 URI を指定します。 name XSLT パラメータのローカル名を指定します。 戻り値 成功した場合に true を、失敗 ... た。 namespace が空でなく、かつ name が Clark 記法または QName 形式の場合、 ValueError がスローされるようになりました。 参考 XSLTProcessor::setParameter() - パラメータの値を設定する XSLTProcessor::getParameter() - パラメータの値を取得する ...
https://man.mtool.work/php/8.3/xsltprocessor.removeparameter.html
XSLTProcessor クラス | PHP 8.3 8179
XSLTProcessor クラス (PHP 5, PHP 7, PHP 8) はじめに クラス概要 class XSLTProcessor { /* プロパティ */ public bool $ doXInclude = false ; public bool $ cloneDocument = false ; public int $ maxTemplateDepth ; public int $ maxTemplateVars ; /* ... arameter ( string $namespace , string $name ): string | false public function getSecurityPrefs (): int public function hasExsltSupport (): bool public function importStylesheet ( object $stylesheet ): bool public function registerPHPFunctionNS ( stri ... cument を明示的に設定できるようになりました。 8.4.0 プロパティ maxTemplateDepth と maxTemplateVars が追加されました。 目次 XSLTProcessor::__construct — 新しい XSLTProcessor オブジェクトを作成する XSLTProcessor::getParameter — パラメータの値を取得する ... XSLTProcessor::getSecurityPrefs — セキュリティ設定を取得する XSLTProcessor::hasExsltSupport — PHP が EXSLT をサポートしているか ...
https://man.mtool.work/php/8.3/class.xsltprocessor.html
DOMXPath::registerPhpFunctionNS — PHP の関数を、名前空間付きの XPath 関数として... 7717
DOMXPath::registerPhpFunctionNS (PHP >= 8.4.0) DOMXPath::registerPhpFunctionNS — PHP の関数を、名前空間付きの XPath 関数として登録する 説明 public function DOMXPath::registerPhpFunctionNS ( string $namespaceURI , string $name , callable $ca ... MXPath::query() - 与えられた XPath 式を評価する DOMXPath::evaluate() - 与えられた XPath 式を評価し、可能であれば結果を返す XSLTProcessor::registerPHPFunctions() - PHP 関数を XSLT 関数として利用できるようにする XSLTProcessor::registerPHPFunctionNS() - ... PHP の関数を、名前空間付きの XSLT 関数として登録する 他のマニュアルの関連ページ Linux JM migrate_pages(2) Docker docker node Docker swarm でノードの管理 Doc ...
https://man.mtool.work/php/8.3/domxpath.registerphpfunctionns.html
libxml のエラー処理関数によるエラー処理 | PHP 8.3 6312
libxml のエラー処理関数によるエラー処理 libxml にはエラー処理用の関数が用意されており、これらを使うと、 XSLT の処理中のエラーを捕らえて対応できます。 例1 fruits.xml 妥当な XML ファイルです。 <fruits> <fruit>Apple</fruit> <fruit>Banana</frui ... ELIBERATE ERROR!"/></li> </xsl:template> </xsl:stylesheet> 例3 エラーの捕捉と表示 以下の例は、エラーを含むスタイルシートで XSLTProcessor::importStyleSheet() を呼んだ際に発生する libxml のエラーを捕らえて表示するものです。 <?php $xmldoc = new DOMDocum ... ent (); $xsldoc = new DOMDocument (); $xsl = new XSLTProcessor (); $xmldoc -> loadXML ( 'fruits.xml' ); $xsldoc -> loadXML ( 'fruits.xsl' ); libxml_use_internal_errors ( true ) ...
https://man.mtool.work/php/8.3/xsl.examples-errors.html
PREV 1 2 NEXT