Salut à tous.
Je cherche à utiliser des CForms dans Lenya (Lenya 1.2.3 / Cocoon 2.1.7 / Jetty). ( http://lenya.apache.org <http://lenya.apache.org/> ). Mon but est de créer des fichiers XML dans un répertoire donné et de les utiliser par la suite avec l’aide d’un pipeline dédié qui fonctionne déjà. Je veux de plus que pour le cas où on est en monde Authoring, on obtienne le formulaire pour saisir une nouvelle information en entrant sur cette page et pour le mode « live » simplement afficher le contenu des fichiers. J’obtiens systématiquement la réponse suivante du serveur : Type 'forms' is not defined for 'transform' at file:/D:/apache-lenya-1.2.3/build/lenya/webapp/lenya/pubs/dsm/publication-si temap.xmap:216:42 Quelqu’un aurait-il une idée ? Yvan Dans mon sitemap, j’ai : <!--+ | Flows +--> <map:flow language="javascript"> <map:script src="flow/create-actu.js"/> </map:flow> […] <!--+ | ACTUS Standalone (dans les pipelines) +--> <map:pipeline> <map:match pattern="**/actualites.html"> <map:select type="parameter"> <map:parameter name="parameter-selector-test" value="{1}"></map:parameter> <map:when test="authoring"> <!--+ | On est en mode AUTHORING donc on affiche le formulaire d'ajout +--> <map:generate src="templates/actualite-template.xml" type="file"></map:generate> <map:transform type="forms"/> <map:transform type="i18n"> <map:parameter name="locale" value="{request:locale}"/> </map:transform> <map:transform src="xslt/page2xhtml.xsl"/> </map:when> <map:otherwise> <!--+ | On n'est pas en mode AUTHORING donc on n'affiche pas le formulaire d'ajout | Le contenu fonctionnait avant d’ajouter le CForm avant +--> <map:aggregate element="cmsbody" label="src"> <map:part src="cocoon://…/mymenu.xml"/> <map:part src="cocoon://…/actus.xml"/> </map:aggregate> <map:transform src="./xslt/actualite2xhtml.xsl"> <map:parameter name="use-request-parameters" value="true"/> <map:parameter name="root" value="/…/live"/> </map:transform> </map:otherwise> </map:select> <!-- Sérialisation en XHTML quoi qu'il en soit --> <map:serialize type="xhtml"/> </map:match> </map:pipeline> Voici mon template (templates/actualite-template.xml) : <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" dc:dummy="FIXME:keepNamespace" dcterms:dummy="FIXME:keepNamespace" lenya:dummy="FIXME:keepNamespace" xhtml:dummy="FIXME:keepNamespace"> <lenya:meta> <dc:title></dc:title> <dc:creator>Yvan JANET</dc:creator> <dc:subject></dc:subject> <dc:description></dc:description> <dc:publisher>yjanet|Yvan|[EMAIL PROTECTED]</dc:publisher> <dc:contributor></dc:contributor> <dc:date>2005-07-28</dc:date> <dc:type></dc:type> <dc:format></dc:format> <dc:identifier></dc:identifier> <dc:source></dc:source> <dc:language>fr</dc:language> <dc:relation></dc:relation> <dc:coverage></dc:coverage> <dc:rights>All rights reserved</dc:rights> <dcterms:issued>2005-06-07 16:06:33</dcterms:issued> <dcterms:modified>2005-06-07 17:28:21</dcterms:modified> </lenya:meta> <head> <title>Blah Blah Blah</title> </head> <body> Blah Blah Blah </body> </html>
