Richard Taylor wrote:
> 
> I have just purchased the pro version of xxe.
> 
> I am trying to debug a problem with some custom fo stylesheets in the
> layout of the table of contents when converted to docx format.

May be of interest: "XMLmind XSL-FO Converter - User's Guide", "Support
of the XSL-FO v1.0 standard", "Leaders":
http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#leaders



> 
> The default stylesheets produce the correct results and I would like to
> compare the xsl-fo produced by them to that produced by my custom
> stylesheets.
> 
> Is there a way to ask xxe to save the intermediate xsl-fo file when I
> convert to docx?
> 

There are two ways to do this. Both methods require you to edit the file
containing the process command used to generate the .docx document.

DocBook 4: XXE_install_dir/addon/config/docbook/xslMenu.incl
DocBook 5: XXE_install_dir/addon/config/docbook5/xslMenu.incl
XHTML: XXE_install_dir/addon/config/xhtml/xslMenu.incl

The name of the process command is something like "SHORT_PREFIX.toRTF".

* Method #1: add attribute debug="true" to the process command. DocBook
4 Example:

---
  <command name="docb.toRTF">
    <process debug="true">
      <subProcess name="docb.convertStep1" />
      ...
---

Attribute debug="true" instructs the process command not to delete its
temporary working directory when the processing is complete. More info
in
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_attributes.html

* Method #2: add a <copy> child element to the process command. DocBook
4 example:

---
  <command name="docb.toRTF">
    <process>
    ...
      </transform>

      <copy files="__doc.fo" to="/home/rjt"/>

      <processFO processor="XFC" file="__doc.fo" to="__doc.%0">
        <parameter name="outputFormat">%0</parameter>
        <parameter name="outputEncoding">%1</parameter>
        ...
---

More info in
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_copy.html


Reply via email to