On 10/7/08, Florent André <[EMAIL PROTECTED]> wrote: > Before the transformation put this code : > <map:transform > src="fallback://lenya/xslt/authoring/edit/addSourceTags.xsl"> > <map:parameter name="source" > value="context://lenya/pubs/debugDOC.xsl"/> > </map:transform> > <map:transform type="write-source"> > <map:parameter name="serializer" value="xml"/> > </map:transform> > <map:transform > src="fallback://lenya/xslt/authoring/edit/removeSourceTags.xsl"/> > > and : > - the stream is writing in the pubs/debugDOC.xsl > - the sitemap processing is not disturbed > > What do you think about this solution ?
1. The file extension should be XML, not XSL 2. Use the datetime to create a new file for each run to prevent overwrites with multiple threads and provide a history. A disadvantage is many files are created and must be deleted manually. Lenya's default date format is "yyyy-M-dd HH:mm:ss Z". Most operating systems do not allow colons in filenames. Configure a new date format to avoid colons in the string. FILE: build\lenya\webapp\WEB-INF\cocoon.xconf Inside the <input-modules> element, add: <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="filedatetime"> <format>yyyymmddHHmmss</format> </component-instance> In your XMAP, change: <map:parameter name="source" value="context://lenya/pubs/debugDOC.xsl"/> TO: <map:parameter name="source" value="context://lenya/pubs/{filedatetime:currentDate}.xml"/> HTH, solprovider P.S. This question belongs on the User ML. Questions about using or developing applications with Lenya belong on the User ML. The Dev ML is for suggestions and work concerning changes to the Lenya platform. "dev" is traditional for the programmers ML -- confusing for platforms because people use platforms to develop applications. The programmers ML should use a different name e.g. platform or base.