[ZPT] Validation of a ZPT on the file system

Fred Drake fdrake at gmail.com
Thu Oct 7 10:05:24 EDT 2004


On Thu, 7 Oct 2004 13:56:38 +0200, Petter Kvalvik <johnpk at hrp.no> wrote:
> Can someone tell how to validate the tales expressions in a ZPT outside of
> Zope (on the file system)?

We don't currently have a tool for this.  Whether it even makes sense
depends on what you mean by "validate".  It's certainly possible to
work out a some sort of DTD-based validation, with well-formedness
checking of the expressions.  It's not reasonable to talk about
whether a template can be executed successfully with providing
information about the request and context object.

But DTD validation and TAL expression well-formedness checking would
be nice to have in a command-line tool.  It's worth a collector entry
in the Zope3-dev collector, if you have a minute to file that.  The
collector is at:

    http://collector.zope.org/Zope3-dev


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation


More information about the ZPT mailing list