cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject Question regarding zip serializer (filename becomes xxxx.continue)
Date Tue, 15 Dec 2009 15:02:58 GMT
Hi all,


I've setup some Pipelines which transform some xml documents into DITA
format.  So what I and up with is a <map> and several <topic>'s.  


The user should be able to render a html preview or download the DITA
result fragments as zip-file.


So in my flowscipt I check which submitbutton the user hits and
dynamically determine the pipeline which needs to get invoked:

      var view = 


            ? "datasheetContainer"

            : productId + ".zip";


      //generate xml snippet which lists the selected topics and start
the complete datasheet process from there




            "data": viewData2





My relevant sitemap snippets:

      <map:match pattern="datasheetContainer">

        <map:generate src="data/datasheet.jx" type="jx" label="step-1"/>

        <map:transform type="cinclude" label="step-2"/>

        <map:transform src="xslt/includePackageAndProductXml.xslt"

        <map:transform type="cinclude" label="step-4"/>      

        <map:transform src="xslt/addGroupId.xslt" type="saxon"

        <map:transform src="xslt/createMapAndTopics.xslt" type="saxon"

        <map:transform src="xslt/sortNonQuantitativeTables.xslt"/>  

        <map:transform type="cinclude" label="step-7"/>

        <map:transform src="xslt/replaceBoxDimensions.xslt" type="saxon"

        <map:transform src="xslt/mergeParametricTableCells.xslt"
type="saxon" label="step-9"/>

        <map:transform src="xslt/cleanup.xslt" type="saxon"/>

        <map:transform src="xslt/escapeHtml.xslt" type="saxon"/> 

        <map:serialize type="productxml"/>  



      <map:match pattern="*.zip">

        <map:generate src="cocoon://datasheetContainer"/>

        <map:transform src="xslt/datasheet2zip.xslt" type="saxon"

        <map:serialize type="zip"/>        



The problem I am facing is that the download dialogue now pops up with 

U have chosen to download the file xxxyyyyzzzz.continue


But what I wanted was for example.


Anyone who knows if I can change this behaviour somehow?  


Kind regards,


View raw message