Using ditaval for different transformations

Post here questions and problems related to editing and publishing DITA content.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Using ditaval for different transformations

Post 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
  1. Exclude entire topics
  2. 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.
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Using ditaval for different transformations

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Re: Using ditaval for different transformations

Post 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?
ionela
Posts: 407
Joined: Mon Dec 05, 2011 6:08 pm

Re: Using ditaval for different transformations

Post 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
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply