Page 1 of 1

Generate customized scenario with profiling conditions (webhelp wml with DITA-OT)

Posted: Fri Jun 29, 2018 6:21 pm
by jmanier
Hello,

Using profiling conditions on a scenario, we don't know how to generate online our customized scenario through plugin webhelp with DITA-OT ? (https://www.oxygenxml.com/xml_webhelp/d ... bhelp.html)
How can we call the specific scenario created with profiling conditions?

Thanks.

Regards,

Jeremy

Re: Generate customized scenario with profiling conditions (webhelp wml with DITA-OT)

Posted: Tue Jul 03, 2018 9:22 am
by radu_pisoi
Hi,

If you have transformation scenario already configured and you want to run the same transformation from command line you can use the DITA-OT dita command.

Code: Select all

dita --input=path/to/ditamap_to_pubish.ditamap 
--format=webhelp-responsive \
--filter=path/to/filter.ditaval
--output=path/to/output/folder \
--propertyfile=transformation.properties
To specify a profiling condition from command line, you can use the --filter switch.

Se more in the following topics:
http://www.dita-ot.org/2.5/user-guide/b ... mmand.html
https://www.oxygenxml.com/doc/versions/ ... aid-title3

Re: Generate customized scenario with profiling conditions (webhelp wml with DITA-OT)

Posted: Tue Jul 03, 2018 3:11 pm
by jmanier
Thank you a lot but I still have a problem.

I have a transformation scenario with a profiling condition : audience="self"
What's the equivalent of the ditaval, is "<prop action="include" att="audience" val="self"/>" ok ?

Because when I'm using the profiling condition (in filters scenario), it works but when i'm using the ditaval file (in filters scenario), it doesn't work. I mean, the generation is working but the filters from the ditaval are not correct.

I guess I've done something wrong but I don't know what..

Re: Generate customized scenario with profiling conditions (webhelp wml with DITA-OT)

Posted: Wed Jul 04, 2018 8:41 am
by Radu
Hi,

With DITAVAL files, the default action is to include anything:

https://www.oxygenxml.com/dita/1.3/spec ... l-val.html

so you probably need to define something like:

Code: Select all

<val>
<prop action="exclude" att="audience"/>
<prop action="include" att="audience" val="self"/>
</val>
to define an exclude for any value for @audience but to include only the specific "self" value.

Regards,
Radu

Re: Generate customized scenario with profiling conditions (webhelp wml with DITA-OT)

Posted: Wed Jul 04, 2018 10:10 am
by jmanier
Hi,

Thank you, it's perfectly working !

Regards,

Jeremy