[ZPT] ZPT does validation of documents?

Tino Wildenhain tino@wildenhain.de
Mon, 06 Aug 2001 12:50:07 +0200


Hi Tony,

of course it does. Its because TAL needs an impression
of what tag encloses which block.

Regards
Tino

--On Montag, 6. August 2001 09:49 +0100 Tony McDonald <tony.mcdonald@ncl.ac.uk> wrote:

> Hi all,
> Just thought I'd share this with you;
>
> <div metal:define-macro="not_busted">
> <ul>
> <li></li>
> </ul>
> </div>
>
> Ok. Compilation is fine.
>
> Whereas
>
> <p metal:define-macro="busted">
> <ul>
> <li></li>
> </ul>
> </p>
>
> Gives a compile-time error
>
> <!-- Page Template Diagnostics
>  Compilation failed
>  TAL.TALDefs.METALError: METAL attributes on <p> require explicit </p>, at
> line 123, column 1
> -->
>
> Is this because METAL (or TAL) is doing some sort of HTML validation?
>
> Tone
> --
> Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
> The Medical School, Newcastle University Tel: +44 191 243 6140
> A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope
>
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt