<?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: Execute XSL Template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237651#M190781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply. I will definitely take those options into consideration. I am also considering re-writing my XSL templates in Freemarker although there are quite a few…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 08:16:36 GMT</pubDate>
    <dc:creator>parrym</dc:creator>
    <dc:date>2009-08-26T08:16:36Z</dc:date>
    <item>
      <title>Execute XSL Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237649#M190779</link>
      <description>After reading the JavaScript API Cookbook I learnt it is possible to execute a Freemarker template against a document using a webscript:var result = document.processTemplate(template);//where document is a document and template is a freemarker template.‍‍I would like to do the same only with an XSL</description>
      <pubDate>Mon, 24 Aug 2009 10:48:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237649#M190779</guid>
      <dc:creator>parrym</dc:creator>
      <dc:date>2009-08-24T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute XSL Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237650#M190780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My first thought would be to check to see if E4X, the JavaScript XML library that's available from server-side Alfresco JavaScript, supports XSL transformations. Thinking it probably does not, I'd just use Java to create an Action that does it by leveraging your favorite XSLT processor. The beauty of an action is that you can call it from a rule, or from JavaScript, or from a workflow, or from Java code, or wherever. You can also give it parameters to control things like where the output of the transformation should be stored, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A third option is to write the transformer as a service and then expose it to the JavaScript engine through Spring. Then, from JavaScript you could call your service, pass in the document and a pointer to your XSLT and get the transformation result back as a String. (If you also like the Action idea, you can have the Action invoke your service rather than perform the transformation in your action executer class directly).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing the transformation in Java gives you all kinds of options. Hopefully this gives you some ideas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 22:02:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237650#M190780</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2009-08-25T22:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute XSL Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237651#M190781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply. I will definitely take those options into consideration. I am also considering re-writing my XSL templates in Freemarker although there are quite a few…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 08:16:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-xsl-template/m-p/237651#M190781</guid>
      <dc:creator>parrym</dc:creator>
      <dc:date>2009-08-26T08:16:36Z</dc:date>
    </item>
  </channel>
</rss>

