Just noticed that PEAR::XML::Transformer doesn't work with current
  HEAD, but works fine with PHP 4.2.3-RC1.

  This script

    <?php
    require_once 'XML/Transformer.php';
    
    $t = new XML_Transformer;
    
    $t->overloadElement(
      'bold',
      'startElementBold',
      'endElementBold'
    );
    
    $t->start();
    
    function startElementBold($attributes) {
      return '<b>';
    }
    
    function endElementBold($cdata) {
      return $cdata . '</b>';
    }
    ?>
    <bold>text</bold>

  outputs

    <bold>text</bold>

  instead of

    <b>text</b>

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to