[ZPT] ZPT does validation of documents?

Tony McDonald tony.mcdonald@ncl.ac.uk
Mon, 06 Aug 2001 09:49:24 +0100


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