[ Index ]

PHP Cross Reference of Unnamed Project v0.00

title

Body

[close]

/ -> XSLTProcessor40.phl (source)

   1  <?php
   2  require_once("jp/ne/hi_ho/pat/dimension/xml/xslt/XSLTProcessor.phl");
   3  ?>
   4  <?php
   5  /**
   6   * PHP4.0.x用XSLT処理クラスです
   7   *
   8   * @package jp.ne.hi_ho.pat.dimension.xml.xslt
   9   * @access    public
  10   * @author    Hideyuki Shimooka <dimension@pat.hi-ho.ne.jp>
  11   * @create    2002/01/28
  12   * @version    $Id: XSLTProcessor40.phl,v 1.3 2002/02/04 13:36:20 shimooka Exp $
  13   **/
  14  class XSLTProcessor40 extends XSLTProcessor
  15  {
  16      /**
  17       * XML/XSLデータから、変換結果を返します
  18       *
  19       * @access    public
  20       * @param    Object    $xslt    XSLTハンドラ(ダミー)
  21       * @param    String    $xml    XMLデータ
  22       * @param    String    $xsl    XSLTデータ
  23       * @return    String    変換結果
  24       */
  25  	function process($xslt, $xml, $xsl)
  26      {
  27          $ret = null;
  28          if (xslt_process($xsl, $xml, $result)) {
  29              $ret = $result;
  30          }
  31          return $ret;
  32      }
  33  
  34      /**
  35       * XML/XSLファイルを読み込み、変換結果を返します
  36       * @access    public
  37       * @param    Object    $xslt    XSLTハンドラ
  38       * @param    String    $xml    XMLファイル名
  39       * @param    String    $xsl    XSLTファイル名
  40       * @return    String    変換結果
  41       */
  42  	function processFile($xslt, $xml, $xsl)
  43      {
  44          xslt_run($xslt, $xsl, $xml);
  45          return xslt_fetch_result($xslt);
  46  
  47      }
  48  }
  49  ?>


Generated: Wed May 25 00:22:31 2005 Cross-referenced by PHPXref 0.6