Installation

XToGen 1 works (quite) "out of the box". XToGen 2 needs some tweaking on your existing Tomcat and SDX installations.

XToGen 1

Uncompress XToGen ZIP archive, update global_xtogen_properties (in xtogen/static) to reflect your SDX installation path.

XToGen 2

Uncompress XToGen ZIP archive, update global_xtogen_properties (in xtogen/static) to reflect your SDX installation path.

2 things have to be done manually:

  • Add following line in $CATALINA_HOME/bin/catalina.sh (if you use Unix/Linux)
    JAVA_OPTS='-Djava.awt.headless=true -Xms128m -Xmx512m'
    or following line in %CATALINA_HOME%\bin\catalina.bat (if you're using Windows) :
    set JAVA_OPTS=-Xms128m -Xmx512m
    Preceding lines allow Java to allocate more memory. It's particularly useful for operations that need a lot of memory (like PDF generation). headless property is used to generate thumbnails galleries.
  • Add the following lines to {CATALINA_HOME}/webapps/sdx/WEB-INF/cocoon.xconf file:
    <!-- XToGen logicsheet. XSLT file is in xtogen-lib.jar. -->
    <builtin-logicsheet>
    	<parameter name="prefix" value="xtg"/>
    	<parameter name="uri" value="http://xtogen.tech.fr"/>
    	<parameter name="href" value="resource://fr/tech/sdx/xtogen/logicsheet/xtogen.xsl"/>
    </builtin-logicsheet>
    
    in <target-language name="java"> section. You can add it after SDX logicsheet declaration (line 324). This allows XToGen taglib usage in XSP sheets.