Hi Hussein and DITAC support team

Thank you very much for the solution. I spent several hours trying to figure what i should be doing with no success. Then in "chapter 9. Simple Customization" for the "Customizing the look of PDF files generated by ditac" in the ditac manual, unless i missed something while reading it, there is an instruction that says to use "

-t customize/custom_fo.xsl"

This command (though with the correct path to the custom_fo.xsl file) is not recognized by the parser and cause it to come back with a series of commands no different than what is the manual.

Alberto

On 01/06/2015 8:36 PM, Hussein Shafie wrote:
On 06/01/2015 01:21 PM, Alberto Perri wrote:

  * A description of the problem.
      o url path to customize directory housing the custom_fo.xsl file
        does not seem to be referenced from within embedded 1 version of
        DITAC .
      o Runs fine with XMLmind XSL Utility 5.2.0
  * The version of XMLmind DITA Converter (ditacfor short). Execute
    "ditac -version" to display this version.
      o ditac version is 2.5.5
  * The name and version of the operating system used to runditac.
      o Windows 7 Professional
  * The version of the Java™ runtime used to runditac. Execute "java
    -version" to display this version.
      o 1.6.0_45
* If relevant, theditaccommand-line used to convert your DITA document.
      o from within embedded 1 version of DITAC
      o String[] args = { "-vvv",
                        "-p", "-xslt", xslDirURL.toExternalForm() +
        "fo/customize/custom_fo.xsl",
                         "-frontmatter", "toc,figurelist", "-p",
        "title-page",
                         xslDirURL.toExternalForm() +
        "fo/customize/titlepage.fo",
                         "-p", "footer-center", "{{topic-title}}",
                         "-p","foProcessor", "FOP",
                         "-p", "screen-resolution", "96",
                         "-p", "page-orientation", "landscape",
                         "-p","default-table-width", "100%", "-p",
        "title-after",
                         "fig table", "-p", "base-font-size", "8pt",
                         "-p", "number",    "all",
                         "-p", "pdf-outline", "yes", outFile.getPath(),
                         inFile.getPath() };
      o where *"-p", "-xslt", xslDirURL.toExternalForm() +
        "fo/customize/custom_fo.xsl" *produces file
URL*file:/C:/helinksTemp/helinks/workspaces/r2be/com.helinks.sts.ditac/xsl/fo/customize/custom_fo.xsl*
  * If relevant(which is almost always the case), a copy of your DITA
    document or a mock-up document allowing to reproduce the problem.
      o see attachment for ditamap, and custom_fo.xsl file
  * If relevant, a link to the part of theDITA 1.2 specification
<http://docs.oasis-open.org/dita/v1.2/spec/DITA1.2-spec.html>which
    is not correctly implemented byditac.
      o not relevant


Sorry but you made a typo in your argument list.

Your argument list contains:

-p -xslt xslDirURL.toExternalForm() + "fo/customize/custom_fo.xsl"

This triplet parses OK but means pass XSLT stylesheet parameter called

"-xslt"

with a value equal to

xslDirURL.toExternalForm() + "fo/customize/custom_fo.xsl"

to the XSL stylesheet generating the XSL-FO. This is certainly not what you want to do.

If you simply remove the superfluous -p and keep just:

-xslt xslDirURL.toExternalForm() + "fo/customize/custom_fo.xsl"

it will work OK.

For example:

---
ditac -vvv \
-xslt file:/home/hussein/tmp/aperri/custom_fo.xsl \
-frontmatter toc,figurelist \
-p footer-center "{{topic-title}}" \
-p foProcessor FOP \
-p screen-resolution 96 \
-p page-orientation landscape \
-p default-table-width 100% \
-p title-after "fig table" \
-p base-font-size 8pt \
-p number all \
-p pdf-outline yes \
manual.pdf manual.ditamap
---

allowed me to use your custom_fo.xsl to generate this PDF file:

http://www.pixware.fr/_download/aperri/manual.pdf







--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to