Skip to content

How can I look at the temporary files from each preprocessing step? #3997

Answered by chrispy-snps
chrispy-snps asked this question in Q&A
Discussion options

You must be logged in to vote

To do this, you can use the ditaot_save_preprocessing.pl script, located here:

chrispy-snps / DITA-ditaot-utilities / Using ditaot_save_preprocessing.pl

It is a Perl script that adds instrumentation to your DITA-OT installation to save the results of each stage of preprocess or preprocess2.

The script modifies the DITA-OT preprocessing build file to preserve a copy of the temporary directory after each preprocessing save, containing the results from that stage:

$ ditaot_save_preprocessing.pl --add
Using the DITA-OT installation at '/home/chrispy/dita-ot'.
Copied '/home/chrispy/dita-ot/plugins/org.dita.base/build_preprocess.xml'
    to '/home/chrispy/dita-ot/plugins/org.dita.base/build_pre…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrispy-snps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant