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"/>' ] ? -- MingFang Hiseh Postgraduate TamKang University Taiwan
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
participants (2)
-
J Cameron Cooper -
明芳