multiple or hierarchical values in Profiling Condition Sets

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
avanlooveren
Posts: 24

multiple or hierarchical values in Profiling Condition Sets

Tue May 16, 2017 3:59 am

I have a language attribute (type xml:lang) in a custom schema that I process with XSLT using a "fallback" logic as follows: if my output is for "en-GB," an element with the value "en-GB" is carried through, with "en" is carried through if no "en-GB" tagged sibling element exists, and finally, an element with no language attribute is carried through if neither "en-GB" nor "en" are present. So, the schema allows for, and I set the profiling attribute for, the language attribute to be single-valued. However, in the profiling condition set, I would like to be able to have a hierarchy of values OR the ability to select multiple values for the attribute to cover the hierarchy. Instead, only one attribute value is selectable for language.

Ideally, the "best match," following the logic above would pass the profiling condition, but even all "en-GB," "en," and unspecified language elements shown would be workable.

I'm not using DITA, but watched a video that shows hierarchical profiling attributes: https://www.oxygenxml.com/demo/DITA_Subject_Scheme.html This seems similar to what I would like to do, functionally, but obviously the specifics of this video aren't applicable to my situation (not using DITA).

Suggestions?
Radu
Posts: 4854

Re: multiple or hierarchical values in Profiling Condition Sets

Tue May 16, 2017 8:19 am

Hi,

So in the Oxygen Preferences->Editor / Edit Modes / Author / Profiling/Conditional Text page you can define profiling attributes and values and you can also define profiling condition sets.
And your question is about defining profiling condition sets, right?
Profiling condition sets can be defined and then applied in order to fade out various parts of the edited content, in order to suggest parts which will be missing from the published output. They are limited in functionality, they cannot cover any custom case.
Maybe you can define additional alternate CSS stylesheets in your custom document type association (framework) and apply them from the Oxygen Styles drop down toolbar button instead of applying the profiling condition sets:

https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/selecting-combining-multiple-css-styles.html

For DITA we allow users to edit profiling attributes in a hierarchy of values using the special Subject Scheme map but there is no GUI equivalent.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
avanlooveren
Posts: 24

Re: multiple or hierarchical values in Profiling Condition Sets

Wed May 17, 2017 7:52 pm

Thanks, Radu.

So, yes, this could essentially be about profiling condition sets. I guess the simplest feature request is to allow profiling condition sets to be configurable with check boxes (multi-valued) regardless of the underlying attributes plurality. That is, I have a single-valued "language" attribute and multi-valued "region" attribute. The pop-up dialog for editing these values works appropriately (allowing only one value for language and multiple for region). However, I don't understand why the profiling condition set is limited to a single value selection for the language attribute (via mutually-exclusive radio buttons). This seems an unnecessary limitation.

-Andre
Radu
Posts: 4854

Re: multiple or hierarchical values in Profiling Condition Sets

Thu May 18, 2017 8:50 am

Hi Andre,

If you go to the Preferences->Editor / Edit Modes / Author / Profiling/Conditional Text page and edit in the "Profiling Attributes" table the entry corresponding to the language attribute, you can specify in the dialog if you want it to be single value or if it can contain multiple values. So you can choose to use multiple values on it which will allow the profiling condition set to let you specify more than one value.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
avanlooveren
Posts: 24

Re: multiple or hierarchical values in Profiling Condition Sets

Thu May 18, 2017 7:38 pm

I don't want the multiple value (check boxes) for the language attribute on input/editing, since this will violate the schema if more than one value is selected. Is this the only way to get multiple values selectable in a profiling condition set?
Radu
Posts: 4854

Re: multiple or hierarchical values in Profiling Condition Sets

Fri May 19, 2017 4:31 pm

Hi,

Sorry but we do not have this functionality.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 3 guests