AnsweredAssumed Answered

Error generating rendition using...

Question asked by jeff on May 8, 2008
Latest reply on May 14, 2008 by mikeh
I'm trying to use a web form to create a html document using a ftl. template.  IN step three of using the web form I receive the following error:

Error generating rendition using document.ftl: Encountered "{" at line 4, column 18. Was expecting one of: "in" … ">" … <EMPTY_DIRECTIVE_END> … "." … "[" … "(" … "?" … "!" … "??" … "+" … "-" … "*" … "/" … "%" … "!=" … "=" … "==" … ">=" … <ESCAPED_GTE> … ">" … <ESCAPED_GT> … <LESS_THAN_EQUALS> … <LESS_THAN> … ".." … <AND> … <OR> … "," … <ID> … <STRING_LITERAL> …

The xml file is produced fine, but no html file is produced.  The contents of my document.ftl are:

<html>
<body>
<#– <#if document.mimetype = "text/xml"> –>
   <#assign dom=${name}.xmlNodeModel>
   <h1>${dom.book.@title}</h1>
   <#list dom.book.chapter as c>
      <h2>${c.title}</2>
   </#list> 
<#– </#if> –>
</body>
</html>

Any insight to the error message would be much appreciated!

Outcomes