cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Daisy export plugin customization
Date Thu, 19 Apr 2007 07:27:11 GMT
Helma (and others),

I created a small module (tools/cocoon-daisy-export-strategy) that provides our
Cocoon specific customization strategies for the Daisy export plugin.

It contains a Java class that gets called for each extracted document. Using it
you get a chance to apply any transformation to the Daisy document you wish 
_before_ the Maven Site plugin that uses the skin kicks in. you can also apply 
different transformations based on the document type.

The current implementation applies an XSLT (see
http://svn.apache.org/repos/asf/cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt)

and is responsible for

  - formatting of search results
  - handling of fixme/note/warning
  - providing the box on the right (homepage)
  - adding the "errors and improvements" box at the bottom of each page

Feel free to change whatever is required for the cocoon-thien skin. (don't 
forget to invoke 'mvn install' on the export-strategy module whenever you change 
something!).

In trunk/site/pom.xml you find all sites (/project/modules) that are exported 
and deployed correctly AFAICT. The sites of the blocks will follow soon.

When you want to test your skin, you don't have to invoke "mvn site" on 
trunk/site but you rather want to change to the module that you want to test, 
e.g. for the main site go to trunk/site/cocoon-main-site and run "mvn site" from 
there.

For those of you you want to build the site locally, please have a look at 
http://cocoon.zones.apache.org/daisy/cdocs/g3/1256.html.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

Mime
View raw message