[Zpt] DW 4 and ZPT...

Todd Coram todd@digicool.com
Fri, 9 Mar 2001 08:34:19 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0039_01C0A873.BBD333A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ugh. I can't seem to get DW 4 to *munge* my TAL markup. This should be =
good news, but given the macromedia newsgroup thread regarding how DW 4 =
is broken in regards to XHTML (especially namespaces), this is annoying =
me.

Let's assume, for the moment, that ZPT *doesn't* care about XHTML (it =
only cares that the elements with TAL/METAL attributes are well formed). =
Let's also assume that Dreamweaver users craft pretty well formed HTML =
(end tags on everything) and they are NOT trying to do XHTML/XML. If DW =
doesn't muck with the following chunk of HTML, then life is good, right?


<html xmlns:tal=3D"http://xml.zope.org/namespaces/tal"
       xmlns:metal=3D"http://xml.zope.org/namespaces/metal"
       metal:use-macro=3D"here/StandardLookAndFeel/macros/master">
<head>
<title>Untitled Document</title>
<meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Diso-8859-1">
</head>
   <body>
     <div metal:fill-slot=3D"main">
       <p>Welcome to the machine</p>
       <p>Choose your type:</p>
        <ul>
          <li tal:repeat=3D"type python:'digital', 'analog', 'organic'"> =

           <a href=3D"dummy"
              tal:attributes=3D"href string:/mach/$type"
              tal:insert=3D"type">selection</a>
          </li>=20
        </ul>
     </div>
   </body>
 </html>




------=_NextPart_000_0039_01C0A873.BBD333A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ugh. I can't seem to get DW 4 to =
*munge* my TAL=20
markup. This should be good news, but given the macromedia newsgroup =
thread=20
regarding how DW 4 is broken in regards to XHTML (especially =
namespaces), this=20
is annoying me.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Let's assume, for the moment, that ZPT =
*doesn't*=20
care about XHTML (it only cares that the elements with TAL/METAL =
attributes are=20
well formed). Let's also assume that Dreamweaver users craft pretty well =
formed=20
HTML (end tags on everything) and they are NOT trying to do XHTML/XML. =
If DW=20
doesn't muck with the following chunk of HTML, then life is good,=20
right?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR>&lt;html=20
xmlns:tal=3D"http://xml.zope.org/namespaces/tal"<BR>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
xmlns:metal=3D"http://xml.zope.org/namespaces/metal"<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
metal:use-macro=3D"here/StandardLookAndFeel/macros/master"&gt;<BR>&lt;hea=
d&gt;<BR>&lt;title&gt;Untitled=20
Document&lt;/title&gt;<BR>&lt;meta http-equiv=3D"Content-Type" =
content=3D"text/html;=20
charset=3Diso-8859-1"&gt;<BR>&lt;/head&gt;<BR>&nbsp;&nbsp;=20
&lt;body&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div=20
metal:fill-slot=3D"main"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;p&gt;Welcome to the=20
machine&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;p&gt;Choose your=20
type:&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;li=20
tal:repeat=3D"type python:'digital', 'analog', 'organic'"&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a=20
href=3D"dummy"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
tal:attributes=3D"href=20
string:/mach/$type"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tal:insert=3D"type"&gt;selection&lt;/a&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/li&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<BR>&nbsp;&nbsp;=20
&lt;/body&gt;<BR>&nbsp;&lt;/html&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0039_01C0A873.BBD333A0--