<!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> </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 <html tal:replace="structure python: here.a_script(str(x))" /> 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><a tal:attributes="href
python:here.a_script(str(x))"><BR>which calls a script that does
this:<BR>return "<html><body>" + x +
"</body></html>"<BR>but of course it delivers this to the
browser:<BR>&lt;html&gt;&lt;body&gt;x&lt;/body&gt;&lt;/html&gt;<BR>Any
way to work around this problem?<BR>TIA,<BR>Tony<BR><BR><BR>-----Original
Message-----<BR>From: Andreas Jung <lists@zopyx.com><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: <BR> <BR>> Hi; <BR>> I have the following PT
code: <BR>> <a tal:attributes="href
python:here.a_script(str(x))"> <BR>> and I want to "structure" it,
kind of like this: <BR>> <a tal:attributes="structure href
python:here.a_script(str(x))"> <BR>> How do I do
that? <BR> <BR>As documented, 'structure' only works with
tal:content|replace. <BR> <BR>-aj <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>