[ANNOUNCEMENT] XML_Transformer-0.7 (stable) Released.
| From: | PEAR Announce | Date: | Sun, 22 Sep 2002 07:08:11 +0000 |
| Subject: | [ANNOUNCEMENT] XML_Transformer-0.7 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2360@lists.php.net to get a copy of this message | ||
The new PEAR package XML_Transformer-0.7 (stable) has been released at http://pear.php.net/.
Release notes
-------------
+ Added Anchor namespace handler.
The Anchor namespace handler implements a database of
indirect links. These links can be maintained centrally
in a single location, and can be used using
<a:iref iref="name">...</a>
<a:random/> selects a single random link from the database.
+ Added Image namespace handler.
+ <img:img/> is a replacement for XHTML's <img/> and
automatically determines the size of the image.
For this, the image must be in a format that is
understood by getimagesize().
+ <img:gtext /> is a container that renders its contents
as a PNG graphics using ImageTTFText().
For this to work, a cache directory below DocumentRoot
that is writeable by the Webserver owner is necessary.
The default is /cache/gtext.
+ <img:gtextdefault /> understands the same attributes as
<img:gtext /> and supplies these to all subsequent calls
of <img:gtext />.
+ Namespace handlers can now use getLock() to disable other
namespace handlers for the time of their transformation.
releaseLock() is used to enable all namespace handlers
again.
+ Added a caching version of the XML_Transformer that uses
the Cache_Lite PEAR package to cache the result of XML
transformations.
+ Added automatic loading of namespace handlers that are
stored in the XML/Transformer/Namespace directory.
+ Added new tags to the PHP Namespace Handler:
+ <php:namespace name="a">
<php:define name="b">
<p>The attribute x is $x and the content is $content.</p>
</php:define>
</php:namespace>
This will define a new namespace a with a single tag b in it
(You may put multiple defines into a namespace). If you use
<a:b x="text">sometext</a:b>, the variable $x will be replaced
with the text, and the variable $content will be replaced with
the content.
+ <php:cookievariable name=""/> inserts the contents of a given
HTTP Cookie into the output XML tree.
+ <php:servervariable name=""/> inserts the contents of a
given server variable into the output XML tree.
+ <php:logic/> executes a given block of PHP code and stores
its output into the output XML tree.
* Refactored the XML_Transformer class into
* XML_Transformer.
* XML_Transformer_CallbackRegistry.
This class faciliates the registration of new callbacks
on-the-fly inside the transformation's recursion.
* XML_Transformer_OutputBuffer.
This class decouples the XML transformation from the output
buffering.
* XML_Transformer_Util.
Static utility methods.
* Deprecated overloading of single XML elements.
By overloading a special namespace, &MAIN, the old behaviour can
be achieved.
* setDefaultCallback() and unsetDefaultCallback() are deprecated.
By overloading the newly introduced &MAIN namespace with a class
that provides default element handlers the old behaviour can
be achieved.
Package Info
-------------
With the XML/Transformer class one can easily bind PHP
functionality to XML tags, thus transforming the input XML tree
into an output XML tree without the need for XSLT.
Related Links
-------------
Package home: http://pear.php.net/package-info.php?package=XML_Transformer
Changelog: http://pear.php.net/package-changelog.php?package=XML_Transformer
Download: http://pear.php.net/get/XML_Transformer-0.7.tgz
Authors
-------------
Sebastian Bergmann <sb@sebastian-bergmann.de> (lead)
Kristian Köhntopp <kk@netuse.de> (developer)