<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error generating rendition using... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162745#M116595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use a web form to create a html document using a ftl. template.&amp;nbsp; IN step three of using the web form I receive the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error generating rendition using document.ftl: Encountered "{" at line 4, column 18. Was expecting one of: "in" … "&amp;gt;" … &amp;lt;EMPTY_DIRECTIVE_END&amp;gt; … "." … "[" … "(" … "?" … "!" … "??" … "+" … "-" … "*" … "/" … "%" … "!=" … "=" … "==" … "&amp;gt;=" … &amp;lt;ESCAPED_GTE&amp;gt; … "&amp;gt;" … &amp;lt;ESCAPED_GT&amp;gt; … &amp;lt;LESS_THAN_EQUALS&amp;gt; … &amp;lt;LESS_THAN&amp;gt; … ".." … &amp;lt;AND&amp;gt; … &amp;lt;OR&amp;gt; … "," … &amp;lt;ID&amp;gt; … &amp;lt;STRING_LITERAL&amp;gt; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The xml file is produced fine, but no html file is produced.&amp;nbsp; The contents of my document.ftl are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#– &amp;lt;#if document.mimetype = "text/xml"&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign dom=${name}.xmlNodeModel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;h1&amp;gt;${dom.book.@title}&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#list dom.book.chapter as c&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;${c.title}&amp;lt;/2&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/#list&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#– &amp;lt;/#if&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight to the error message would be much appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2008 19:02:15 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2008-05-08T19:02:15Z</dc:date>
    <item>
      <title>Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162745#M116595</link>
      <description>I'm trying to use a web form to create a html document using a ftl. template.&amp;nbsp; 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" … "&amp;gt;" … &amp;lt;EMPTY_DIRECTIVE_END&amp;gt; … ".</description>
      <pubDate>Thu, 08 May 2008 19:02:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162745#M116595</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2008-05-08T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162746#M116596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Freemarker, you only need to use the ${variable} syntax when you're not already in a Freemarker statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign dom=${name}.xmlNodeModel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign dom=name.xmlNodeModel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 19:53:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162746#M116596</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-05-08T19:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162747#M116597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your quick reply.&amp;nbsp; I've removed the brackets as suggested so now I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#– &amp;lt;#if document.mimetype = "text/xml"&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign dom=name.xmlNodeModel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;h1&amp;gt;${dom.book.@title}&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#list dom.book.chapter as c&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;${c.title}&amp;lt;/2&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/#list&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#– &amp;lt;/#if&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, after trying to run this through the web form I can still create the xml file fine, but I receive this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error generating rendition using document.ftl: freemarker.core.NonStringException: Error on line 5, column 10 in freemarker_template Expecting a string, date or number here, Expression dom.book.@title is instead a freemarker.ext.dom.NodeListModel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;without the successful creation of the html file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've specified dom.book.@title both as a normalizedString and as a string on separate occasions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried dom.book.title as an element rather than an attribute with the same error result.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please shed some light on this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 20:43:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162747#M116597</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2008-05-08T20:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162748#M116598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you post the XML you're trying to parse please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 08:24:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162748#M116598</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-05-09T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162749#M116599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think the line "&amp;lt;#assign dom=${name}.xmlNodeModel&amp;gt;" is useless, have you seen this page : &lt;A href="http://freemarker.org/docs/dgui_quickstart_basics.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/docs/dgui_quickstart_basics.html&lt;/A&gt; an this one : &lt;A href="http://freemarker.sourceforge.net/docs/xgui_imperative_learn.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.sourceforge.net/docs/xgui_imperative_learn.html&lt;/A&gt; ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You need to read the whole help page… including the second sentence&amp;nbsp; :wink: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Assume that the programmer has put the XML document into the data-model as variable &lt;EM&gt;doc&lt;/EM&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 11:24:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162749#M116599</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-05-09T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162750#M116600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi isa and Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to both of you for your help!&amp;nbsp; I've got it to work now.&amp;nbsp; Isa, you are correct, I did not require "NodeModel".&amp;nbsp; Also, I was trying to access the variables incorrectly, instead of dom.book.chapter I should have only been using book.chapter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can only be onward and upward from here!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 18:05:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162750#M116600</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2008-05-09T18:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating rendition using...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162751#M116601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the follow-up. I hadn't realised you were talking about WCM, but re-reading your question it's clear you were!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad the issue is fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:23:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-generating-rendition-using/m-p/162751#M116601</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-05-14T08:23:50Z</dc:date>
    </item>
  </channel>
</rss>

