<?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 Re: Rendition Service - xsltRenderingEngine - template path in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220849#M173979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some digging around, I found that adding the &lt;/SPAN&gt;&lt;STRONG&gt;destination-path-template&lt;/STRONG&gt;&lt;SPAN&gt; parameter to the renditionDefiniton&amp;nbsp; let me save the rendered XML document, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var renditionDef = renditionService.createRenditionDefinition(renditionDefName, renderingEngineName);&lt;BR /&gt;renditionDef.parameters["destination-path-template"] = "/Company Home/test_folder/" + document.name + ".rendered.xml";&lt;BR /&gt;renditionDef.parameters["template_string"] = xsltString;&lt;BR /&gt;renditionDef.execute(document);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;PARAM_DESTINATION_PATH_TEMPLATE: (String) this optional parameter indicates where the rendition will be created. The parameter may specify either the actual file path to the rendition or it may specify a Freemarker template which can be resolved to a file path. In either case the path is relative to the root node of the store in which the source node exists. If the parameter PARAM_DESTINATION_NODE has been set then this parameter will be ignored.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is from &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Base_rendering_engine" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Base_rendering_engine&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 May 2010 14:40:01 GMT</pubDate>
    <dc:creator>swithun</dc:creator>
    <dc:date>2010-05-13T14:40:01Z</dc:date>
    <item>
      <title>Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220847#M173977</link>
      <description>I am trying pass the xsltRenderingEngine a template path as set out here http://wiki.alfresco.com/wiki/XSLT_rendering_enginePARAM_TEMPLATE_PATH: (String) the path to the node whose cm:content property contains the XSLT. The display path is used for this parameter. That is to say "/Company Home/…" as</description>
      <pubDate>Thu, 06 May 2010 21:24:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220847#M173977</guid>
      <dc:creator>nick_vermeulen</dc:creator>
      <dc:date>2010-05-06T21:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220848#M173978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having similar trouble. I was having the same error, but I managed to get past it and on to other errors and now I'm stuck again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My script is something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var renditionDefName = "cm:adHocRenditionDef"; // can this really be anything?&lt;BR /&gt;var renderingEngineName = "xsltRenderingEngine";&lt;BR /&gt;var xsltString = "&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;\&lt;BR /&gt;&amp;lt;xsl:stylesheet version='1.0' xmlns:xsl='&lt;A href="http://www.w3.org/1999/XSL/Transform" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XSL/Transform&lt;/A&gt;'&amp;gt;\&lt;BR /&gt;…&lt;BR /&gt;&amp;lt;/xsl:stylesheet&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;var renditionDef = renditionService.createRenditionDefinition(renditionDefName, renderingEngineName);&lt;BR /&gt;renditionDef.parameters["template_string"] = xsltString;&lt;BR /&gt;var result = renditionDef.execute(document);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the &lt;/SPAN&gt;&lt;STRONG&gt;execute&lt;/STRONG&gt;&lt;SPAN&gt; method, rather than the &lt;/SPAN&gt;&lt;STRONG&gt;render&lt;/STRONG&gt;&lt;SPAN&gt; method. And I'm using&amp;nbsp; the "template_string" property to get the XSL code in. Passing the path didn't work, and I couldn't figure out how to get a node reference. The wiki documentation always says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef sourceNode = // obtained in the usual way e.g. from nodeService&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;which doesn't help if you don't know the usual way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I don't know is what kind of object, if any, is returned by &lt;/SPAN&gt;&lt;STRONG&gt;execute&lt;/STRONG&gt;&lt;SPAN&gt;. The above script runs without error, but also without any effect as far as I can see. My &lt;/SPAN&gt;&lt;STRONG&gt;result&lt;/STRONG&gt;&lt;SPAN&gt; variable is undefined, so I can't give it a name and save it. The XSLT will transform the XML document I'm running the script on (with xsltproc), so that isn't the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 11:44:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220848#M173978</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-05-13T11:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220849#M173979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some digging around, I found that adding the &lt;/SPAN&gt;&lt;STRONG&gt;destination-path-template&lt;/STRONG&gt;&lt;SPAN&gt; parameter to the renditionDefiniton&amp;nbsp; let me save the rendered XML document, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var renditionDef = renditionService.createRenditionDefinition(renditionDefName, renderingEngineName);&lt;BR /&gt;renditionDef.parameters["destination-path-template"] = "/Company Home/test_folder/" + document.name + ".rendered.xml";&lt;BR /&gt;renditionDef.parameters["template_string"] = xsltString;&lt;BR /&gt;renditionDef.execute(document);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;PARAM_DESTINATION_PATH_TEMPLATE: (String) this optional parameter indicates where the rendition will be created. The parameter may specify either the actual file path to the rendition or it may specify a Freemarker template which can be resolved to a file path. In either case the path is relative to the root node of the store in which the source node exists. If the parameter PARAM_DESTINATION_NODE has been set then this parameter will be ignored.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is from &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Base_rendering_engine" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Base_rendering_engine&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 14:40:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220849#M173979</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-05-13T14:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220850#M173980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another way to get the XSLT document for use in the rendering is by using the &lt;/SPAN&gt;&lt;STRONG&gt;template_node&lt;/STRONG&gt;&lt;SPAN&gt; parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;renditionDef.parameters["template_node"] = search.findNode("workspace://SpacesStore/d903d0af-f12e-4be8-b017-084ee14a31d4");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The trick was finding the right method for getting a node from the node reference. &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Search_API" rel="nofollow noopener noreferrer"&gt;3.3_JavaScript_API#Search_API&lt;/A&gt;&lt;SPAN&gt; helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 13:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220850#M173980</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-05-14T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220851#M173981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried the .execute it returned this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Please correct the errors below then click OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to create content due to error: 04150032 Failed to execute script 'workspace://SpacesStore/4d5b0e42-175f-4018-88b8-f27931b24855': 04150031 TypeError: Cannot find function execute. (workspace://SpacesStore/4d5b0e42-175f-4018-88b8-f27931b24855#46)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the render function continues to return:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Please correct the errors below then click OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to create content due to error: 04150034 Failed to execute script 'workspace://SpacesStore/4d5b0e42-175f-4018-88b8-f27931b24855': 04150033 This action requires that either the template_string parameter or the template_node parameter be specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var renditionDefName = "cm:adHocRenditionDef"; // can this really be anything?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var renderingEngineName = "xsltRenderingEngine";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var renditionDef = renditionService.createRenditionDefinition(renditionDefName, renderingEngineName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;renditionDef.parameters["template-node"] = search.findNode("workspace://SpacesStore/449242b7-2ca2-4267-af0d-4d4484ad876a");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;renditionDef.parameters["destination-path-template"] = "/Company Home/test_folder/" + document.name + ".rendered.xml";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// renditionDef.execute(document);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var rendition = renditionService.render(document, renditionDef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have tried both:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;renditionDef.parameters["template-node"] = search.findNode("workspace://SpacesStore/449242b7-2ca2-4267-af0d-4d4484ad876a"); and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;renditionDef.parameters["template_node"] = search.findNode("workspace://SpacesStore/449242b7-2ca2-4267-af0d-4d4484ad876a");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what I am doing wrong am running v3.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 May 2010 17:12:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220851#M173981</guid>
      <dc:creator>nick_vermeulen</dc:creator>
      <dc:date>2010-05-15T17:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220852#M173982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should be &lt;/SPAN&gt;&lt;STRONG&gt;template_node&lt;/STRONG&gt;&lt;SPAN&gt;, with an underscore, although &lt;/SPAN&gt;&lt;STRONG&gt;destination-path-template&lt;/STRONG&gt;&lt;SPAN&gt; uses hyphens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why the method &lt;/SPAN&gt;&lt;STRONG&gt;execute&lt;/STRONG&gt;&lt;SPAN&gt; can't be found. How one would test the &lt;/SPAN&gt;&lt;STRONG&gt;renditionDef&lt;/STRONG&gt;&lt;SPAN&gt; variable for its type? That might tell you if the object is being created properly. Or is the TypeError caused by &lt;/SPAN&gt;&lt;STRONG&gt;document&lt;/STRONG&gt;&lt;SPAN&gt; not being instantiated? How is the script being called?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 10:46:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220852#M173982</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-05-17T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220853#M173983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. Not sure why the parameters use hyphens and underbars not exactly consistent!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am calling the JavaScript from a rule attached to a space.&amp;nbsp; The rule is run when a document is added to the space. The script first of all makes a backup of the document and places it in a backup directory.&amp;nbsp; The code for that is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// find the xmloutput folder - create if not already exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var xmlFolder = space.childByNamePath("iXBRL Files Backup");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (xmlFolder == null &amp;amp;&amp;amp; space.hasPermission("CreateChildren"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // create the folder for the first time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; xmlFolder = space.createFolder("iXBRL Files Backup");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (xmlFolder != null &amp;amp;&amp;amp; xmlFolder.hasPermission("CreateChildren"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // copy the doc into the backup folder to kept an audit &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var copy = document.copy(xmlFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (copy != null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // change the name so we know it's a backup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copy.name = "Backup of " +&amp;nbsp; copy.name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copy.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This part works and copies the document to the new folder. I think that means that document is set when I then make the call to the renderer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you calling your renderer?&amp;nbsp; Have you had to install the xslt processor or change any variables to point to your processor.&amp;nbsp; I have made the assumption that the processor was included in the bundle I downloaded and that I don't need to config it at all.&amp;nbsp; Could be a big assumption. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to post all the code you have got to work and how you are calling it?&amp;nbsp; That would tell me if there is something wrong with my install of Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 19:48:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220853#M173983</guid>
      <dc:creator>nick_vermeulen</dc:creator>
      <dc:date>2010-05-17T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rendition Service - xsltRenderingEngine - template path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220854#M173984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a script that works for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var renditionDefName = "cm:adHocRenditionDef";&lt;BR /&gt;var renderingEngineName = "xsltRenderingEngine";&lt;BR /&gt;var xsltNode = "workspace://SpacesStore/6d01184c-50ce-4d2b-bc66-bb83e72735b0";&lt;BR /&gt;var destination = document.displayPath + "/" + document.name + "rendered.xml";&lt;BR /&gt;&lt;BR /&gt;var renditionDef = renditionService.createRenditionDefinition(renditionDefName, renderingEngineName);&lt;BR /&gt;&lt;BR /&gt;renditionDef.parameters["template_node"] = search.findNode(xsltNode);&lt;BR /&gt;renditionDef.parameters["destination-path-template"] = destination;&lt;BR /&gt;&lt;BR /&gt;renditionDef.execute(document);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment, I call it just on individual files, by doing &lt;/SPAN&gt;&lt;EM&gt;Run Action&lt;/EM&gt;&lt;SPAN&gt; and then &lt;/SPAN&gt;&lt;EM&gt;Execute Script&lt;/EM&gt;&lt;SPAN&gt;. I will want to use it as a rule later on. The &lt;/SPAN&gt;&lt;STRONG&gt;template_node&lt;/STRONG&gt;&lt;SPAN&gt; property is got by right clicking on &lt;/SPAN&gt;&lt;EM&gt;Alfresco Node Reference&lt;/EM&gt;&lt;SPAN&gt; for the XSLT document (stored in &lt;/SPAN&gt;&lt;EM&gt;Rendering Actions Space&lt;/EM&gt;&lt;SPAN&gt;) and copying the link address. Is there some other operation you can try which will test whether this node reference is found?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have a source version of Alfresco 3.3, checked out from SVN. But I don't think I've modified anything in this bit of Alfresco. If you have a source version, then the &lt;/SPAN&gt;&lt;STRONG&gt;XSLTRenderingEngine&lt;/STRONG&gt;&lt;SPAN&gt; class is found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/rendition/executer/XSLTRenderingEngine.java&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you just have a binary version, then you can see if you have &lt;/SPAN&gt;&lt;STRONG&gt;XSLTRenderingEngine&lt;/STRONG&gt;&lt;SPAN&gt; compiled in, with something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[archive@itspc-cs2 fits-0.3.1]$ find /opt/alfresco/tomcat/webapps/alfresco/ -name "*.jar" | xargs grep XSLTRenderingEngine&lt;BR /&gt;Binary file /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-3.3G.jar matches&lt;BR /&gt;Binary file /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-web-client-3.3G.jar matches&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm only just discovering all this stuff myself. I'm not sure what significant differences there could be in our setups.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:18:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rendition-service-xsltrenderingengine-template-path/m-p/220854#M173984</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-05-18T09:18:59Z</dc:date>
    </item>
  </channel>
</rss>

