[ZPT] The Zope Book define macro example

Michael Fair michael@daclubhouse.net
Fri, 15 Mar 2002 13:13:17 -0800


To respnd to my own post, the reason for the failure
is that the <ul> tag implicitly closes the <p> tag.

Trying to use tables instead of <ul> does the same thing.

So I redid it enclosing the whole thing in a <span> tag
and it worked just fine.  I've submitted comments on 
"The Zope Book" via the comments link but I'm not sure
if they went anywhere useful since I was just taken to
the bug page where my comments weren't listed.

-- Michael --

----- Original Message ----- 
From: "Michael Fair" <michael@daclubhouse.net>
To: <zpt@zope.org>
Sent: Friday, March 15, 2002 12:34 PM
Subject: [ZPT] The Zope Book define macro example


> Hi all,
> 
> I just installed the latest debian package of Zope
> and started experimenting with Page Templates and
> was using Chapter 9 of "The Zope Book" which had
> this example:
> 
> <p metal:define-macro="sidebar">
>   Links
>   <ul>
>     <li><a href="/">Home</a></li>
>     <li><a href="/products">Products</a></li>
>     <li><a href="/support">Support</a></li>
>     <li><a href="/contact">Contact Us</a></li>
>   </ul>
> </p>
> 
> 
> However when i try and save the page, I get an
> error saying that <p> tags need an explicit </p>
> tag.  Removing the <ul><li's></li's></ul> solves
> the problem but shouldn't this example work?
> 
> -- Michael --
> 
> 
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>