Page 1 of 1

Import profiling colors and styles from ditaval

Posted: Fri Jan 20, 2023 4:29 pm
by Heidi
Hi,

there is a possibility to import profiling colors and styles from a ditaval:
Editor > Edit modes > Author > Profiling/Conditional Text > Colors and Styles

But I don't find how to write the styles uand colors in the ditaval. My ditaval looks like that:

Code: Select all

<val>
    <prop action= "exclude" att="product" val="AB"/>
    <prop action= "include" att="product" val="XY"/>
</val>
I could set the attribute color or style in the prop-element, but that would change the output and not the styling in the author mode. It would be great if the whole team could easily import the colors and styles from a ditaval.
Can anyone help?

Thank you!
Heidi

Re: Import profiling colors and styles from ditaval

Posted: Fri Jan 20, 2023 6:38 pm
by Radu
Hello Heidi,

The flagging examples here are kind of complex and Oxygen's import does not support them all:
https://www.oxygenxml.com/dita/1.3/spec ... l-val.html
but we support stuff like this:

Code: Select all

<prop action="flag" att="product" backcolor="blue"  color="yellow" style="underline" val="MyProd"/>
so you can set a color, bg color and a style for a certain attribute name with a certain value, then import the DITAVAL in Oxygen.
And you can also use the same ditaval file for publishing.

Regards,
Radu

Re: Import profiling colors and styles from ditaval

Posted: Sun Jan 22, 2023 3:21 pm
by chrispitude
Hi Heidi,

Currently, Oxygen stores the imported DITAVAL information in the Oxygen .xpr file. To change/add/remove colors, the .xpr file must be updated and redistributed.

We filed enhancement request EXM-47205 to import DITAVAL dynamically at runtime:

Feature Request: Have an Oxygen project obtain all profiling condition information from DITAVAL file

Then, writers could change/add/remove conditions as needed without redistributing updated .xpr files. I thought I would mention it in case it sounds useful to you.

- Chris

Re: Import profiling colors and styles from ditaval

Posted: Mon Jan 23, 2023 2:16 pm
by Heidi
Hi Radu and Chris,

thank you for your answers. When I want to import the Colors and Styles (button "Import from DITAVAL" in "Editor / Edit Modes / Author / Profiling/Conditional Text / Colors and Styles"), I get the message: "No profiling style was detected from the selected DITAVAL file(s)." No matter if I write the colors or the codes:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<val>
    <prop action= "exclude" att="product" val="A" color="#ff00ff"/>
    <prop action= "include" att="product" val="B" color="#00aa00"/>
    <prop action= "exclude" att="product" val="C" color="#ff9933"/>
    <prop action= "exclude" att="product" val="D" color="#00ffff"/>
    <prop action= "include" att="product" val="BC" color="#0000ff"/>
    <prop action= "exclude" att="product" val="CD" color="#ffe000"/>
    <prop action= "exclude" att="props" val="WP" style="underline"/> 
    <prop action= "exclude" att="props" val="WPM" style="double-underline"/>
</val>
Have you any clue why the import of Colors and Styles don't work?
The Import in "Editor / Edit Modes / Author / Profiling/Conditional Text / Attributes and Condition Sets" work fine.

Thank you
Heidi

Re: Import profiling colors and styles from ditaval

Posted: Mon Jan 23, 2023 5:18 pm
by Heidi
Hi again,
it has to be the "flag" action. Now it works.

Thank you two :)