<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
/**********************************************************************************
 * $URL:  $
 * $Id:  $
 ***********************************************************************************
 *
 * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
 *
 * Licensed under the Educational Community License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.opensource.org/licenses/ecl1.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 **********************************************************************************/
-->
<beans>
  <!-- components context -->

  <!-- Render Factory for creating Wiki Renderer Contexts -->
  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.radeox.RenderContextFactory"
    class="uk.ac.cam.caret.sakai.rwiki.component.radeox.service.impl.RenderContextFactoryImpl"
       init-method="init" 
 	>
  </bean>

  <!-- Wiki engine factory -->
  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.radeox.RenderEngineFactory"
    class="uk.ac.cam.caret.sakai.rwiki.component.radeox.service.impl.RenderEngineFactoryImpl"
       init-method="init" 
 	>  
    <property name="externalImageLink"><value>&lt;img src="/sakai-rwiki-tool/images/icklearrow.gif" alt="external link: " title="external link"/&gt;</value></property>
  </bean>


  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiSecurityService"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiSecurityServiceImpl"
    init-method="init" 
    >

  </bean>

  <!-- The component level Render service -->
  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.RenderService"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.RenderServiceImpl"
    init-method="init" 
    >
  </bean>

  <!-- The RWiki Object service, component level -->
  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiObjectServiceImpl"
    init-method="init"  >
    <property name="RWikiCurrentObjectDao"><ref bean="rwikiCurrentObjectDao"/></property>
    <property name="RWikiHistoryObjectDao"><ref bean="rwikiHistoryObjectDao"/></property>
    <property name="handlers">
      <map>
        <entry key=""><ref bean="rwikiRAWHandler" /></entry>
        <entry key="html"><ref bean="rwikiHTMLHandler" /></entry>
        <!-- 
	<entry key="odt"><ref bean="rwikiODTHandler" /></entry>
	-->
        <entry key="rtf"><ref bean="rwikiRTFHandler" /></entry>
        <entry key="pdf"><ref bean="rwikiPDFHandler" /></entry>
        <entry key="10.rss"><ref bean="rwiki10RSSHandler" /></entry>
        <entry key="09.rss"><ref bean="rwiki09RSSHandler" /></entry>
        <entry key="20.rss"><ref bean="rwiki20RSSHandler" /></entry>
        <entry key="atom"><ref bean="rwikiAtomHandler" /></entry>
        <entry key="fop"><ref bean="rwikiFOPHandler" /></entry>
        <entry key="changes.xml"><ref bean="rwikiChangesHandler"/></entry>
      </map>
    </property>
  </bean>

  <!-- The base level radeox render engine -->

  <bean id="org.radeox.api.engine.RenderEngine" 
  	class="uk.ac.cam.caret.sakai.rwiki.component.radeox.service.impl.RWikiBaseRenderEngine" 
  	init-method="init"
  	>
  </bean>



  <!-- The Rendered content cache, impl uses ehcache which is initialised on first use, if cache fails
  it is re-initialised -->
  <bean id="uk.ac.cam.caret.sakai.rwiki.service.api.radeox.RenderCache" 
  	class="uk.ac.cam.caret.sakai.rwiki.component.radeox.service.impl.RenderCacheImpl" 
    init-method="init" >
    <property name="cacheName"><value>rwiki-render-cache</value></property>
  </bean>
  
  
  <bean id="rwikiRAWHandler" 
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
    <!-- from XSLTEntityHandler -->
    <!-- The transformer use on the stream -->
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/null.xslt</value></property>
    <property name="minorType"><value></value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
      </map>     
    </property>
  </bean>
  
  <!-- these are EntityProducer handler beans, the config is bean dependant -->
  <bean id="rwikiHTMLHandler" 
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
      <!-- from XSLTEntityHandler -->
      <!-- The transformer use on the stream -->
     <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/tohtml.xslt</value></property>
    <property name="minorType"><value>html</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="feedFormat"><value>&lt;a href="{0}html" target="feeds"&gt;&lt;img src="/library/image/sakai/html.gif" border="0"  alt="Html" /&gt; Public View &lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/html; charset=UTF-8</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="omit-xml-declaration"><value>yes</value></entry>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="version"><value>4.0</value></entry>
        <entry key="media-type"><value>text/html; charset=UTF-8</value></entry>
        <entry key="doctype-public"><value>-//W3C//DTD XHTML 1.0 Transitional//EN</value></entry>
        <entry key="doctype-system"><value>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
		<entry key="{http://xml.apache.org/xalan}content-handler"><value>uk.ac.cam.caret.sakai.rwiki.component.service.impl.XHTMLSerializer</value></entry>
<!--        
      <entry key="{http://xml.apache.org/xalan}entities"><value>org/apache/xml/serializer/HTMLEntities</value></entry> 

-->
        <entry key="{http://xml.apache.org/xalan}use-url-escaping"><value>yes</value></entry> 
        <entry key="{http://xml.apache.org/xalan}omit-meta-tag"><value>no</value></entry> 
      </map>     
    </property>
  </bean>
  <bean id="rwikiPDFHandler" 
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
    
    <property name="experimental"><value>true</value></property>
    
    <!-- from XSLTEntityHandler -->
    <!-- The transformer use on the stream -->
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/xhtml2fo.xslt</value></property>
    <property name="minorType"><value>pdf</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="feedFormat"><value>&lt;a href="{0}pdf" target="feeds"&gt;&lt;img src="/library/image/sakai/pdf.gif" border="0"  alt="PDF" /&gt;PDF&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>application/pdf</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="{http://xml.apache.org/xalan}content-handler"><value>uk.ac.cam.caret.sakai.rwiki.component.service.impl.FOP2PDFSerializer</value></entry>
      </map>     
    </property>
  </bean>
  
  <bean id="rwikiRTFHandler" 
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
    
    <property name="experimental"><value>true</value></property>
    
    <!-- from XSLTEntityHandler -->
    <!-- The transformer use on the stream -->
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/xhtml2fo.xslt</value></property>
    <property name="minorType"><value>rtf</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="feedFormat"><value>&lt;a href="{0}rtf" target="feeds"&gt;&lt;img src="/library/image/sakai/word.gif" border="0"  alt="RTF" /&gt;&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/rtf</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
     <entry key="{http://xml.apache.org/xalan}content-handler"><value>uk.ac.cam.caret.sakai.rwiki.component.service.impl.FOP2RTFSerializer</value></entry>
      </map>     
    </property>
  </bean>
  <bean id="rwikiFOPHandler" 
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
    
    <property name="experimental"><value>true</value></property>
    
    <!-- from XSLTEntityHandler -->
    <!-- The transformer use on the stream -->
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/xhtml2fo.xslt</value></property>
    <property name="minorType"><value>fop</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
<!--
NOT VISABLE ON FEEDS

    <property name="feedFormat"><value>&lt;a href="{0}fop" target="feeds"&gt;&lt;img src="/library/image/sakai/fop.gif" border="0"  alt="FOP" /&gt;&lt;/a&gt;</value></property>
-->
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
      </map>     
    </property>
  </bean>
 <!-- 

DISABLED 

  <bean id="rwikiODTHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XSLTEntityHandler"  
    init-method="init"  destroy-method="destroy" >
    
    <property name="experimental"><value>true</value></property>
    
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/null.xslt</value></property>
    <property name="minorType"><value>odt</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="feedFormat"><value>&lt;a href="{0}odt" target="feeds"&gt;&lt;img src="/library/image/sakai/word.gif" border="0"  alt="ODT" /&gt;&lt;/a&gt;</value></property>
    
    
  </bean>
-->
  <bean id="rwikiChangesHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XLSTChangesHandler"  
    init-method="init"  destroy-method="destroy" >
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/null.xslt</value></property>
    <property name="minorType"><value>changes.xml</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="rwikiObjectService"><ref bean="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService" /></property>
    <property name="siteService"><ref bean="org.sakaiproject.site.api.SiteService" /></property>
    <!--  <property name="feedFormat"><value>&lt;a href="{0}10.rss" target="feeds"&gt;&lt;img src="/sakai-rwiki-tool/images/rss10.gif" border="0"  alt="RSS 1.0" /&gt;&lt;/a&gt;</value></property>-->
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
      </map>     
    </property>
    
  </bean>
  <bean id="rwiki10RSSHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XLSTChangesHandler"  
    init-method="init"  destroy-method="destroy" >
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/torss10.xslt</value></property>
    <property name="minorType"><value>10.rss</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="rwikiObjectService"><ref bean="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService" /></property>
    <property name="siteService"><ref bean="org.sakaiproject.site.api.SiteService" /></property>
    <property name="feedFormat"><value>&lt;a href="{0}10.rss" target="feeds"&gt;&lt;img src="/sakai-rwiki-tool/images/rss10.gif" border="0"  alt="RSS 1.0" /&gt;&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
      </map>     
    </property>
    
  </bean>
  <bean id="rwiki09RSSHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XLSTChangesHandler"  
    init-method="init"  destroy-method="destroy" >
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/torss091.xslt</value></property>
    <property name="minorType"><value>09.rss</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="rwikiObjectService"><ref bean="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService" /></property>
    <property name="siteService"><ref bean="org.sakaiproject.site.api.SiteService" /></property>
    <property name="feedFormat"><value>&lt;a href="{0}09.rss" target="feeds"&gt;&lt;img src="/sakai-rwiki-tool/images/rss091.gif" border="0"  alt="RSS 0.91" /&gt;&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
        <!--
          <entry key="{http://xml.apache.org/xalan}content-handler"><value>org.apache.xml.serializer.ToHTMLStream</value></entry> 
          <entry key="{http://xml.apache.org/xalan}entities"><value>org/apache/xml/serializer/HTMLEntities</value></entry> 
          
        -->
      </map>     
    </property>
    
  </bean>
  <bean id="rwiki20RSSHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XLSTChangesHandler"  
    init-method="init"  destroy-method="destroy" >
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/torss20.xslt</value></property>
    <property name="minorType"><value>20.rss</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="rwikiObjectService"><ref bean="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService" /></property>
    <property name="siteService"><ref bean="org.sakaiproject.site.api.SiteService" /></property>
    <property name="feedFormat"><value>&lt;a href="{0}20.rss" target="feeds"&gt;&lt;img src="/sakai-rwiki-tool/images/rss20.gif" border="0"  alt="RSS 2.0"/&gt;&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
        <!--
          <entry key="{http://xml.apache.org/xalan}content-handler"><value>org.apache.xml.serializer.ToHTMLStream</value></entry> 
          <entry key="{http://xml.apache.org/xalan}entities"><value>org/apache/xml/serializer/HTMLEntities</value></entry> 
          
        -->
      </map>     
    </property>
    
  </bean>
  <bean id="rwikiAtomHandler"
    class="uk.ac.cam.caret.sakai.rwiki.component.service.impl.XLSTChangesHandler"  
    init-method="init"  destroy-method="destroy" >
    <property name="xslt"><value>/uk/ac/cam/caret/sakai/rwiki/component/service/impl/toatom03.xslt</value></property>
    <property name="minorType"><value>atom</value></property>    
    <property name="defaultStackTrace"><value>Failed To generate Stack Trace : {0}</value></property>
    <property name="errorFormat"><value>Error encounvered performing transform : {0} \n {1}</value></property>
    <property name="authZPrefix" ><value>/wiki</value></property>
    <property name="anchorLinkFormat" ><value>/access/wiki{0}.html#{1}</value></property>
    <property name="standardLinkFormat" ><value>/access/wiki{0}.html</value></property>
    <property name="hrefTagFormat" ><value>&lt;a href="{0}" &gt;{1}&lt;/a&gt;</value></property>
    <property name="accessURLStart" ><value>/wiki/</value></property>
    <property name="rwikiObjectService"><ref bean="uk.ac.cam.caret.sakai.rwiki.service.api.RWikiObjectService" /></property>
    <property name="siteService"><ref bean="org.sakaiproject.site.api.SiteService" /></property>
    <property name="feedFormat"><value>&lt;a href="{0}atom" target="feeds"&gt;&lt;img src="/sakai-rwiki-tool/images/atom03.gif" border="0" alt="Atom 0.3" /&gt;&lt;/a&gt;</value></property>
    <property name="responseHeaders">
      <map>
        <entry key="content-type"><value>text/xml</value></entry>
      </map>     
    </property>
    <property name="outputProperties">
      <map>
        <entry key="indent"><value>yes</value></entry>
        <entry key="encoding"><value>UTF-8</value></entry>
        <entry key="media-type"><value>text/xml</value></entry>
        <entry key="{http://xml.apache.org/xalan}indent-amount"><value>2</value></entry> 
        <!--
          <entry key="{http://xml.apache.org/xalan}content-handler"><value>org.apache.xml.serializer.ToHTMLStream</value></entry> 
          <entry key="{http://xml.apache.org/xalan}entities"><value>org/apache/xml/serializer/HTMLEntities</value></entry> 
          
        -->
      </map>     
    </property>
    
  </bean>
  
</beans>
