RE: [PEAR-DEV] New XSLT class for PEAR
| From: | Stuart Herbert | Date: | Mon, 24 Feb 2003 17:02:07 +0000 |
| Subject: | RE: [PEAR-DEV] New XSLT class for PEAR | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13771@lists.php.net to get a copy of this message | ||
Hi Dan,
I'm just finishing off a class that will perform XSLT processing using Java
processors such as Saxon, for those like me who can't work around bugs in
PHP's built-in support.
It'd be great if we could sort out a common API, and maybe a factory to hide
all of the alternatives behind.
I've had a look at XML_XSLT_Wrapper, and it seems to be very comprehensive -
but I'm not comfortable with how stateful it is. Objects that represent
data should be stateful - not objects that perform actions :(
Best regards,
Stu
--
> -----Original Message-----
> From: Dan Kuykendall [mailto:dan@kuykendall.org]
> Sent: 24 February 2003 16:12
> To: pear-dev@lists.php.net
> Subject: [PEAR-DEV] New XSLT class for PEAR
>
>
> I wrote another XSLT class that I hope can be included with PEAR.
>
> This class is a wrapper for PHP's XSLT support. Its makes it
> easier to
> use XSLT, and also adds a feature which can take a good
> amount of load
> off of the server.
> The class will attempt to discover if the client/browser has a decent
> XSLT engine. So far it only supports IE 5.5+, but as soon as mozilla
> fixed a couple things with its XSLT support I will add it.
>
> If it decides that the browser has XSLT, then it will just
> send the XML
> to the browser and let the browser handle rendering into
> HTML, and save
> the server from the hassle.
> Otherwise it will use PHP's XSLT support to render the HTML which can
> then be sent to the browser.
>
> All the details and the package itself can be found at
> http://www.kuykendall.org/xmltools/Xslt.html
>
> Im planning to
> add a templating class which will depend on this class as
> well as PEAR's XML_Tree. It will work like many template
> classes in that
> it will allow the user to simply set vars in the class. The template
> class will handle converting the resulting vars into XML and then go
> thru the XSLT process. This conversion will also depend on a
> function I
> wrote for XML_Tree which enables XML_Tree to automaticly convert an
> array into its XML nodes, thereby making it super easy to convert an
> array into XML with just a few commands. The function has
> been submitted
> to the XML_Tree maintainers, but can also be found at
> http://www.kuykendall.org/xmltools/importVar.t> xt
>
> I dont know
> how the voting process is supposed to work,
> but I would like
> to have the class reviewed and opened up for a vote. I have
> alot I would
> like to contribute to PEAR.
>
> Im working on a completely new version of phpGroupWare which
> will sit on
> top of PEAR. Im the founder of phpGroupWare and initially
> resisted PEAR.
> However I did not anticipate how well PEAR would turn out and
> I now am
> convinced that this is a collection of very quality code, and really
> want to contribute to this great project.
>
> Dan Kuykendall
>
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>