<?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: Another transformer conflicts with OpenOffice in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212526#M165656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I seem to have fixed this. Before, my &lt;/SPAN&gt;&lt;STRONG&gt;isTransformable&lt;/STRONG&gt;&lt;SPAN&gt; method just returned true for everything. By only returning true if the target mimetype is for XML, this stops my custom transformer from overriding OpenOffice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public boolean isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return targetMimetype.equals(MimetypeMap.MIMETYPE_XML);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This works for the moment. But if I have another bit of code that transforms files to XML, then how could I choose between the two transformers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, my first transformer would not be a transformer, as it generates a document containing technical metadata about the first document, rather than being a more normal transform. I couldn't find another kind of action that would give me a target node into which I could dump output from an action. Is there a better choice of action?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 11:59:46 GMT</pubDate>
    <dc:creator>swithun</dc:creator>
    <dc:date>2010-08-26T11:59:46Z</dc:date>
    <item>
      <title>Another transformer conflicts with OpenOffice</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212525#M165655</link>
      <description>I have developed a transform action, which will 'transform' any document into an XML document containing technical metadata (see the fitsinalfresco project on AlfrescoForge). This works fine (no errors in the log). But I found that it is now preventing OpenOffice from being used to transform documen</description>
      <pubDate>Mon, 23 Aug 2010 16:32:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212525#M165655</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-08-23T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Another transformer conflicts with OpenOffice</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212526#M165656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I seem to have fixed this. Before, my &lt;/SPAN&gt;&lt;STRONG&gt;isTransformable&lt;/STRONG&gt;&lt;SPAN&gt; method just returned true for everything. By only returning true if the target mimetype is for XML, this stops my custom transformer from overriding OpenOffice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public boolean isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return targetMimetype.equals(MimetypeMap.MIMETYPE_XML);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This works for the moment. But if I have another bit of code that transforms files to XML, then how could I choose between the two transformers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, my first transformer would not be a transformer, as it generates a document containing technical metadata about the first document, rather than being a more normal transform. I couldn't find another kind of action that would give me a target node into which I could dump output from an action. Is there a better choice of action?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 11:59:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212526#M165656</guid>
      <dc:creator>swithun</dc:creator>
      <dc:date>2010-08-26T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Another transformer conflicts with OpenOffice</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212527#M165657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps you should be creating renditions rather than using the transformation framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could just have two actions.&amp;nbsp; Convert to A, Convert to B. that are kicked off either manually or automatically ?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you are abusing the transformation framework which should be used for converstion between different mime types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does your source document change from time to time and if it does what do you expect to happen?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 13:16:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/another-transformer-conflicts-with-openoffice/m-p/212527#M165657</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-08-26T13:16:40Z</dc:date>
    </item>
  </channel>
</rss>

