Page 1 of 1
Using ditaval for different transformations
Posted: Thu Jun 14, 2018 5:47 pm
by anna_craneo
Hi.
I'm in need to adjust my .dita output depending on transformation scenario.
To be more specific - I transform DITA to
PDF WYSIWYG (with custom CSS) and
HTML5 (default).
Depending on the output format I want to
- Exclude entire topics
- Exclude or add some content inside the topics
As far as I'm concerned the perfect tool for this task is to use DITAVAL file and I have gone through some documentation. Unfortunately, it's still unclear how I should specify the conditions for
transformation scenarios and where exactly I should add the file itself.
I will appreciate any help (e.g., a sample file), thanks.
Re: Using ditaval for different transformations
Posted: Fri Jun 15, 2018 12:11 pm
by Costin
Hi Anna,
Indeed, the best way to achieve that is by specifying the profiling conditions in a DITAVAL file, which you could then pass to the transformation scenario.
If you have already created your DITAVAL file, you should just edit the DITA Map PDF WYSIWYG transformation scenario, then, in the scenario configuration tab, you should go into the "Filters"tab, select "Use DITAVAL file" browse to the path of your file and select it to be used in the scenario.
Next you should just apply the changes and run the scenario which would make use of your DITAVAL.
Regards,
Costin
Re: Using ditaval for different transformations
Posted: Fri Jun 15, 2018 12:56 pm
by anna_craneo
Costin wrote:Hi Anna,
Indeed, the best way to achieve that is by specifying the profiling conditions in a DITAVAL file, which you could then pass to the transformation scenario.
If you have already created your DITAVAL file, you should just edit the DITA Map PDF WYSIWYG transformation scenario, then, in the scenario configuration tab, you should go into the "Filters"tab, select "Use DITAVAL file" browse to the path of your file and select it to be used in the scenario.
Next you should just apply the changes and run the scenario which would make use of your DITAVAL.
Regards,
Costin
Hi Costin,
Thanks for answering, but I still don't quite understand how to solve this case. Let me provide a more specific example. I have a paragraph, which I want to see in my PDF, but hide in HTML. Can I run two transformations for the same map using
one DITAVAL or I use
two different DITAVALs with different conditions and add them respectively to
Filters in transformation settings?
Re: Using ditaval for different transformations
Posted: Mon Jun 18, 2018 12:06 pm
by ionela
Hello,
You need to use one DITAVAL file for each of the transformation scenarios. More details about filtering profiling values with a DITAVAL file can be found in our user manual:
https://www.oxygenxml.com/doc/versions/ ... -file.html
Regards,
Ionela