XSLTProcessor->transformToDoc()
    (no version information, might be only in CVS)
XSLTProcessor->transformToDoc() -- DOMDocument に変換する
返り値
   結果の DOMDocument 。
   エラーが発生した場合は FALSE 。
  
例
   
例 1. DOMDocument への変換 
<?php
  // XML ソースをロードする $xml = new DOMDocument; $xml->load('collection.xml');
  $xsl = new DOMDocument; $xsl->load('collection.xsl');
  // 変換の設定を行う $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // XSL ルールを適用する
  echo trim($proc->transformToDoc($xml)->firstChild->wholeText);
  ?>
 |  
 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection!  |  
  |