First I have a book publication that dynamically creates a xml file ?exportset.xml? that lists all the documents to should be used with the export tool.
Then I want to call a javascript function from the book pipeline to run the export tool.
Pipeline:
<map:flow language="javascript">
<map:script src="flow.js"/>
</map:flow>
<map:pipelines>
<map:pipeline internal-only="true" type="noncaching">
<map:match pattern="ExportBook">
<map:call function="exporter"/>
</map:match>
</map:pipeline>
</map:pipelines>
But I do not know how to use the TMExporter class in the flow.js:
cocoon.load("resource://org/outerj/daisy/frontend/util/daisy-util.js");
importPackage(Packages.org.outerj.daisy.tools.importexport["export"].tm);
importClass(Packages.org.outerj.daisy.tools.importexport["export"].tm.TMExporter);
function exporter() {
org.outerj.daisy.tools.importexport["export"].tm.TMExporter.run(???);
...
}
First problem: importClass causes an error ?org.outerj.daisy.tools.importexport.export.tm.TMExporter is not a class?.
Further I don?t know how to use the function ?run?. Unfortunately I?m not familar with the JAVA stuff and mostly get into trouble when I?m beyond XSL :-).
Can anyone help me with that, please?
Thank you, regards, Bernhard
Post by Bernhard MaierDear list,
I would like to have the translation export/import tool within the gui of daisy wiki. Idea: export as a book publication. The translator could pick up the xml files in the book store.
Does anyone has tried something like this?
Thank you, kiond regards,
Bernhard_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
list information: http://lists.cocoondev.org/mailman/listinfo/daisy