Hello again Hussein, before I start hunting for image references and modifying them on the XML file "by hand" (either with String search_and_replace or with XML DOM processing), is there a parameter or something else (a conversion step? a xed script) I can use to change the generated image references in the XML from xxx_files/image.png to just image.png? (that is, removing the xxx_files/ from the image URIs in the XML).
Thanks in advance for your prompt answer. On Thu, Apr 20, 2017 at 2:39 PM, Fabián Mandelbaum <[email protected]> wrote: > Hello Hussein, > > I've ended up modifying the sources of the servlet to "manipulate" folders > to generate the needed structure before zipping and returning it. I'll > modify it further to add the LANG as a parameter to the POST request. > Thanks! > > On Thu, Apr 20, 2017 at 1:42 PM, Hussein Shafie <[email protected]> > wrote: > >> On 04/20/2017 03:45 PM, Fabián Mandelbaum wrote: >> >>> >>> is there any way to customize the structure of the ZIP folders for the >>> w2x docbook5 output? >>> >>> Currently w2x produces: >>> >>> name_of_docx_minus_the_extension/ (for the whole thing) >>> name_of_docx_minus_the_extension_files/ (for the images) >>> >>> I'd need it to produce: >>> >>> content/ (for the whole thing) >>> content/LANG/ (for the XML file _AND_ the images) >>> >>> >> I'm sorry but there is currently no easy way[*] to do this. >> >> Please note that the w2x servlet is meant to be customized (see >> WEB-INF/web.xml and conversions/*.txt found in w2x.war) and/or extended if >> needed to. >> >> That's why the full source code of the w2x servlet is included in this >> distribution: >> >> http://www.xmlmind.com/w2x/_download/w2x_servlet-eval-1_2_2.zip >> >> >> >> --- >> [*] Even something like "-p convert.resource-directory ." which is >> supposed to generate everything in the same output directory does not work >> as expected due to a bug. See definition of parameter "resource-directory" >> in http://www.xmlmind.com/w2x/_distrib/doc/manual/index.html#convert_step >> >> > > > -- > Fabián Mandelbaum > IS Engineer > -- Fabián Mandelbaum IS Engineer
-- XMLmind Word To XML Support List [email protected] http://www.xmlmind.com/mailman/listinfo/w2x-support
