<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=610364914-15082007><FONT face=Arial 
color=#0000ff size=2>Why would you put HTML inside an HREF?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=610364914-15082007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=610364914-15082007><SPAN 
class=266544914-15082007><FONT face=Arial color=#0000ff size=2>Sounds to me like 
you want &lt;html tal:replace="structure python: here.a_script(str(x))" /&gt; or 
something like that.</FONT></SPAN></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> zope-bounces@zope.org 
[mailto:zope-bounces@zope.org] <B>On Behalf Of 
</B>tonylabarbara@aol.com<BR><B>Sent:</B> August 15, 2007 10:45<BR><B>To:</B> 
lists@zopyx.com; zope@zope.org<BR><B>Subject:</B> Re: [Zope] How Do I 
"Structure" This?<BR></FONT><BR></DIV>
<DIV></DIV>Bummer. Well, I'm trying to call a script that will render content to 
the Web, like this:<BR>&lt;a tal:attributes="href 
python:here.a_script(str(x))"&gt;<BR>which calls a script that does 
this:<BR>return "&lt;html&gt;&lt;body&gt;" + x + 
"&lt;/body&gt;&lt;/html&gt;"<BR>but of course it delivers this to the 
browser:<BR>&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;x&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;<BR>Any 
way to work around this problem?<BR>TIA,<BR>Tony<BR><BR><BR>-----Original 
Message-----<BR>From: Andreas Jung &lt;lists@zopyx.com&gt;<BR>To: 
tonylabarbara@aol.com; zope@zope.org<BR>Sent: Wed, 15 Aug 2007 10:20 
am<BR>Subject: Re: [Zope] How Do I "Structure" This?<BR><BR>
<DIV id=AOLMsgPart_1_b42b6463-b894-4ee5-8489-fc4f44bad0d4 
style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff"><BR>--On 
15. August 2007 10:17:56 -0400 <A 
href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> 
wrote:&nbsp;<BR>&nbsp;<BR>&gt; Hi;&nbsp;<BR>&gt; I have the following PT 
code:&nbsp;<BR>&gt; &lt;a tal:attributes="href 
python:here.a_script(str(x))"&gt;&nbsp;<BR>&gt; and I want to "structure" it, 
kind of like this:&nbsp;<BR>&gt; &lt;a tal:attributes="structure href 
python:here.a_script(str(x))"&gt;&nbsp;<BR>&gt; How do I do 
that?&nbsp;<BR>&nbsp;<BR>As documented, 'structure' only works with 
tal:content|replace.&nbsp;<BR>&nbsp;<BR>-aj&nbsp;<BR></DIV><!-- end of AOLMsgPart_1_b42b6463-b894-4ee5-8489-fc4f44bad0d4 -->
<DIV class=AOLPromoFooter>
<HR style="MARGIN-TOP: 10px">
AOL now offers free email to everyone. Find out more about what's free from AOL 
at <A href="http://www.aol.com?ncid=AOLAOF00020000000437" 
target=_blank><B>AOL.com</B></A>.<BR></DIV></BODY></HTML>