Re: [SMARTY] Smarty,XML and XSLT
| From: | Richard Wall | Date: | Tue, 20 Aug 2002 16:49:45 +0000 |
| Subject: | Re: [SMARTY] Smarty,XML and XSLT | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5775@lists.php.net to get a copy of this message | ||
--- olivier hericord <ohericord@free.fr> wrote: > Hi,
> I've just finished parsing every template file of my
> site to make the
> generated code fully XHTML1.0 compliant.
> Now templates really look likes pure XML files...
> I was wondering if someone has experienced to
> generate XML files with
> smarty to Post process them with XSLT to generate
> the HTML output (or
> any other format like rtf etc...)?
I've done a smarty prefilter to that uses HTML Tidy
(http://tidy.sourceforge.net/) to convert templates to
XHTML (see attachment). I am attemting to preprocess
the XHTML templates with the php/expat xml parser to
convert TAL
(http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL)
attributes to equivalent smarty code.
Could use php XSLT module to do the same I suppose.
I recommend HTML Tidy, it's absolutly brilliant.
--RichardW.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com