Hello All,

I have been working with Smarty for some time and have been pleased with it's ease of use. I recently started playing with XSL templates and am finding them much more appealing. However, Agavi did not provide a view for XSL and I did not see anything in Trac about creating one anytime soon (I apologize if there is something and I missed it). So I spent the last week or so trying to figure out the best approach for creating my own XSLView and I feel I have come up something that is at least a good start. The nice thing is that the XSL classes themselves do not require any other libraries outside of php since they are compiled in.

I am hoping to get it considered for the Agavi project so any comments, patches, etc are welcome. If it is accepted to the Agavi project I would be willing to write tutorials on how to use it.

Attached is a tar file containing  the following files:
XSLView.class.php                    (Class to be considered)
Default_IndexSuccessView        (The view class that extends XSLView)
IndexSuccess.xsl                         (The template file to use)

Requirements:
1) PHP needs to be compiled with
     --with-xml
     --with-xsl
   (for windows users you will have to read up on this)

2) Make sure to add the XSLView class to the settings.ini file


Regards,
-Wes

Attachment: xslview.tar
Description: Unix tar archive

_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to