Tutorial

  1. Copy Approriate Sample Publication
    (for instance: cp -r lenya/pubs/ethz-mat lenya/pubs/my-pub)
  2. Configure sitemap.xmap
    (for instance: replace ethz-mat by my-pub)
  3. Mount sitemap.xmap from the root sitemap.xmap which is located within the lenya directory
    <map:match pattern="my-pub/**">
    <map:mount uri-prefix="my-pub" src="lenya/pubs/my-pub/sitemap.xmap" check-reload="true" reload-method="synchron"/>
    </map:match>
  4. Set Prefix for Stylesheets: lenya/pubs/my-pub/stylesheets/Configuration/read.xsl
    (for instance: replace ethz-mat by my-pub)
  5. Set Name of Publication: lenya/pubs/my-pub/stylesheets/lenya/conf/conf.xsl
    (for instance: replace "Materials Science" by "My Publication")
  6. Start modifying the XML, XSLT and the various sitemaps
    1. Create XSLT from HTML with JTidy:
      export PATH=/usr/local/jdk1.3.1/bin:$PATH
      java -classpath LENYACMS/build/lenya/classes:LENYACMS/build/lenya/webapp/WEB-INF/lib/jtidy-04aug2000r7-dev.jar org.apache.lenya.util.TidyCommandLine