cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed xhtml rendering engine?

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

OOB alfresco provides ftl & xslt based rendering engines using which we can author & publish content. I want to know how can i embed xhtml based engine which takes xhtml & xml as input & finally content filled xhtml as output.

I am working hard but could not find any idea. Can anyone help me here.

I also read that it provides only two rendering engines, can i extend it?

Or simply how to embed a new rendering engine behaving like oob provided.
4 REPLIES 4

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

I tried & got some success but not fully. Trying to get it verified:

1. Created XHTMLRenderingEngine extending org.alfresco.repo.rendition.executer.BaseTemplateRenderingEngine having all logic getting noderefs for xhtml & xml doc and creating new file which is combo of these two files.

2. Edited "rendition-services-context.xml" with following entry

<bean id="xhtmlRenderingEngine"
      class="com.lalit.template.XHTMLRenderingEngine"
      parent="baseRenderingAction">
      <property name="serviceRegistry">
         <ref bean="ServiceRegistry" />
      </property>
   </bean>

3. Started alfresco, no error but i am not able to test it. How can i do it? 

My whole idea is to get it reflected on alfresco explorer.Please suggest. :?:

hans
Champ in-the-making
Champ in-the-making
we also are trying to export our wiki into a docbook so we can use it as a documentation, but its so hard to get some instruction how to make it happen Smiley Sad((

greetings

enkidu
Champ in-the-making
Champ in-the-making
half a year later and still no answer.. dunno whats wrong with the alfresco developer crowd

mrogers
Star Contributor
Star Contributor
I suggest you don't hijack old threads and clearly state what you are trying to do.   Anyone interested in docbook export is unlikely to have even read your posting.