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

Oxygen general issues.
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

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

Post 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
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post 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
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

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

Post 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..
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jmanier
Posts: 41
Joined: Thu Jun 08, 2017 3:41 pm

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

Post by jmanier »

Hi,

Thank you, it's perfectly working !

Regards,

Jeremy
Post Reply