xslt_setopt

(PHP 4 >= 4.3.0, PECL)

xslt_setopt --  与えられた XSL プロセッサにオプションを設定する

説明

int xslt_setopt ( resource processor, int newmask )

xslt_setopt() は与えられた processornewmask によって指定されたオプションを設定します。

newmask は次の定数で定義されたビットマスクです。

例 1. xslt_setopt() の例

<?php

$xh
= xslt_create();

// Sablotron にパブリックなエンティティを処理するよう伝える
xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES);

// 空白の除去もしてくれるよう問い合わせてみる
xslt_setopt($xh, xslt_getopt($xh) | XSLT_SABOPT_DISABLE_STRIPPING);

?>

以下も参照ください

xslt_getopt().