Jutilise cocoon depuis peu.
Jai installé cocoon sur Apache, tout marche bien : ladresse localhost:8080
retourne la page dacceuil de apache, la page localhost:8080/cocoon/ renvoie
bien la page daccueil de cocoon.
Jai crée un répertoire « html-pdf » dans le répertoire webapps/coccon, avec
un sitemap.xmap, les fichiers sources xml et les fichiers de transformation
xslt.
Quand je lance cocoon et demande un fichier html, tout marche parfaitement.
Mais quand je demande un fichier rtf, il ouvre word dans la fenetre internet
explorer mais ne met rien dans le document. Je suppose que c'est un problème
de configuration du sitemap.xmap, mais je ne sais pas quoi changer...
Les fichiers logs de cocoon me renvoie :
ERROR (2006-01-30) 11:54.22:984 [sitemap.handled-errors] (/cocoon/html-pdf/)
Thread-20/ErrorHandlerHelper: No pipeline matched request: html-pdf/
at <map:mount> -
file:/C:/travaux/Tomcat%204.1/webapps/cocoon/sitemap.xmap:911:66
INFO (2006-01-30) 11:54.23:004 [sitemap] (/cocoon/html-pdf/)
Thread-20/HandleErrorsNode: Processing handle-errors at <map:handle-errors>
- file:/C:/travaux/Tomcat%204.1/webapps/cocoon/sitemap.xmap:926:24
INFO (2006-01-30) 11:54.23:425 [access] (/cocoon/html-pdf/)
Thread-20/CocoonServlet: 'html-pdf/' Processed by Apache Cocoon 2.1.8 in 441
milliseconds.
Pourriez vous maider?
Merci davance
Voici mon fichier sitemap.xmap:
<?xml version="1.0" encoding="iso-8859-1"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- define the Cocoon processing pipelines -->
<map:pipelines>
<map:pipeline>
<!-- respond to *.html requests with
our docs processed by cv new version.xslt -->
<map:match pattern="*.html">
<map:generate src="{1}.xml"/>
<map:transform src="cv new version.xslt"/>
<map:serialize type="html"/>
</map:match>
<!-- later, respond to *.rtf requests with
our docs processed by doc2pdf.xsl -->
<map:match pattern="*.rtf">
<map:generate src="{1}.xml"/>
<map:transform type="saxon" src="cv new version
rtf2.xslt"/>
<map:serialize type="fo2rtf"/>
</map:match>
<!-- later, respond to *.pdf requests with
our docs processed by doc2pdf.xsl -->
<!-- map:match pattern="*.pdf">
<map:generate src="{1}.xml"/>
<map:transform type="saxon" src="cv new version fopdf.xsl"/>
<map:serialize type="itext2pdf"/>
</map:match -->
</map:pipeline>
</map:pipelines>
</map:sitemap>
_________________________________________________________________
Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]