[Zope] How to include a file content to value field?

J Cameron Cooper jccooper@jcameroncooper.com
Tue, 29 Apr 2003 15:09:52 -0500


>
>
>I have a XML file(abc.xml) and a DTML method in the same folder.
>The DTML method has code:
>    <input type="text" name="XML" value='      '>
>I want to include XML file's content in the value field.
>What is the syntax in the value filed to do this.
>can I use [ value='<div tal:replace="structure here/abc.xml"/>' ] ?
>  
>
You're mixing Page Template and DTML concepts/syntax.

In DTML it is::

<input type="text" name="XML" value="<dtml-var abc.xml html_quote>">

or in entity syntax::

<input type="text" name="XML" value="&dtml-abc.xml;">

In ZPT it is

<input tal:attributes="value here/abc.xml" type="text" name="XML"
value="default">

Haven't tested these, so they may need a little tweaking. (But probably
not.)

--jcc