[Zope] Cleaning HTML for use as ZPT

Robert Jean robertjean2 at yahoo.com
Tue Aug 19 10:19:18 EDT 2003


Dennis,

Thanks for your response.

I don't understand what you mean by "use TAL and/or
DTML to invoke it". Invoke what?

The old malformed HTML has to be rendered by TAL,
because after being imported, it is modified and
contains a few TAL macros.

Robert

--- Dennis Allison <allison at sumeru.stanford.EDU>
wrote:
> You don't say why you need to put the existing HTML
> into TAL.
> Why not serve the old malformed HTML (that works)
> directly 
> and use TAL and/or DTML to invoke it.  I use this
> approach 
> to good effect.  I actually store the HTML in the
> local file
> system and access it through LocalFS.  Over time you
> can migrate
> HTM to TAL as features are added, etc.
> 
> On Tue, 19 Aug 2003, Robert Jean wrote:
> 
> > Hello,
> > 
> > I have to import existing HTML pages into Zope and
> use
> > them as Page Templates. The problem I have is that
> > many or most of these pages are not proper HTML
> and
> > they are (rightly so) refused by the TAL HTML
> parser.
> > 
> > Do you know of any simple way to clean up the
> original
> > HTML? I was thinking of HTML Tidy, or something
> > similar, used as a Web service or installed
> locally.
> > 
> > Any idea greatly appreciated.
> > Thanks,
> > 
> > Robert
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> > 
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> > 
> http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Zope mailing list