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

<oXygen/> general issues.
jmanier
Posts: 33

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

Fri Jun 29, 2018 6:21 pm

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: 327
Location: Craiova

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

Tue Jul 03, 2018 9:22 am

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: 33

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

Tue Jul 03, 2018 3:11 pm

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: 5563

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

Wed Jul 04, 2018 8:41 am

Hi,

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

https://www.oxygenxml.com/dita/1.3/specs/langRef/ditaval/ditaval-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: 33

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

Wed Jul 04, 2018 10:10 am

Hi,

Thank you, it's perfectly working !

Regards,

Jeremy

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests