<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Verdana">Thanks... but go easy.<br>
<br>
I have to choose which features of Zope to learn and use, based on a
much larger criteria than I can present here.&nbsp; <br>
<br>
I do not wish to mix ZPT and DTML in my project... I had chosen DTML,
before ZPT was mature... It may be better, but I don't care for now...
when I'm able to re-assess which pieces of Zope to use in a future
project, I may well choose it.<br>
<br>
As a professional programmer, you must see the advantage in adhering to
a project's standards and specs, as to managing the code in the
project.&nbsp; That is why I needed to use DTML for my RSS.<br>
<br>
I have chosen my mix for this project, and benefit much more from my
standards docs much more than any single feature like ZPT can provide.<br>
<br>
As far as I know, DTML is being supported into the future, and my hand
will not be forced.<br>
<br>
I appreciate all the hard work in developing ZPT for the community, but
it's just not for me, yet... probably be used in my first Zope 3
project instead.<br>
<br>
BTW, the solution presented by Peter hit the nail on the head... I have
a very nice RSS setup now for my Zope app.<br>
<br>
Thanks,<br>
<br>
-Jon Cyr<br>
</font></font><br>
Chris Withers wrote:
<blockquote cite="mid431FED89.5040704@simplistix.co.uk" type="cite">Jonathan
Cyr wrote:
  <br>
  <blockquote type="cite">I am constructing an RSS 2.0 feed for a zope
app.&nbsp; I am creating the rss.xml file in a DTML method.&nbsp; </blockquote>
  <br>
Use ZPT, it's much better suited to this...
  <br>
  <br>
  <blockquote type="cite">to include in the feed is a structured-text
paragraph.&nbsp; To use any XHTML in a feed you must "html_quote" all of the
extended characters for it to work.
    <br>
  </blockquote>
  <br>
What do you mean by "extended characters" here?
  <br>
  <br>
  <blockquote type="cite">So I wish to do something like &lt;dtml-var
summary fmt="structured-text" html_quote&gt;
    <br>
    <br>
This obviously doesn't work, (would have been cool if it did tho).&nbsp; How
do I access the structured text and html quote translation mechanisms
in an expr tag.
    <br>
    <br>
Something like &lt;dtml-var
expr="summary.structured_text().html_quote()"&gt;
    <br>
  </blockquote>
  <br>
  <br>
ZPT does html quoting by default, so provided summary.structured_text()
does what yo uexpect it to, you could just do:
  <br>
  <br>
&lt;tal:x replace="summary/structured_text"/&gt;
  <br>
  <br>
That said, I'd pretty sure RSS feeds CAN include html, and it doesn't
need to be quoted...
  <br>
  <br>
  <blockquote type="cite">ps- I don't use ZPT, DTML was chose a while
back, and would rather keep </blockquote>
  <br>
Well, un-choose it, especially for something new and isolated like an
RSS feed...
  <br>
  <br>
  <blockquote type="cite">the RSS in a DTML Method rather than a python
script.&nbsp; The layers are getting pretty hairy, don't want to add
indention to it
    <br>
  </blockquote>
  <br>
Huh?!
  <br>
  <br>
Chris
  <br>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Jonathan Cyr
<a class="moz-txt-link-abbreviated" href="mailto:cyrj@cyr.info">cyrj@cyr.info</a></pre>
</body>
</html>