Info message for profiling/conditional text when validating DITA documents

Post here questions and problems related to editing and publishing DITA content.
ckabstein
Posts: 150
Joined: Fri Apr 24, 2015 12:28 pm

Info message for profiling/conditional text when validating DITA documents

Post by ckabstein »

Hi,
After updating from 25.1 to 26.1, when running the validation (Validation and Check for Completeness command) of our DITA documents, we all of a sudden get the following info message:
W [CND_PREF] Value "1.0.0" defined for attribute "rev" is not defined in the Profiling/Conditional Text preferences page."
This has never appeared before. We use this attribute for custom conditional processing of our release notes. We add an extra topic at the beginning of our documents in which we add elements that may use different rev values so that we can create a list of release notes versions.
The elements and rev attributes allow us to retrieve information from the respective topics where changes were made.
Is there a way to exclude the attribute and its values from the validation?
At the moment, I can only imagine adding that attribute to the Profiling Attributes list and add ALL versions of all products that we have released so far. :shock:
This doesn't sound right.
Thanks,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
sorin_carbunaru
Posts: 417
Joined: Mon May 09, 2016 9:37 am

Re: Info message for profiling/conditional text when validating DITA documents

Post by sorin_carbunaru »

Hello,

I imagine that if you had these options saved at he project level in v25.1, you would still have them in the newer Oxygen version... That's why I think you may have them saved at the global level, case in which you could try exporting the global options from 25.1 and import them in 26.1 (see the "Options" menu and the import/export actions).

Or maybe you have the values defined in a DITAVAL file? Then you could import them from there (see the "Import from DITVAL..." button in the Editor > Edit Modes > Author > Profiling/Conditional Text > Attributes and Condition Sets preferences page).

Regards,
Sorin Carbunaru
Oxygen XML Editor
ckabstein
Posts: 150
Joined: Fri Apr 24, 2015 12:28 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by ckabstein »

Hi Sorin,
Sorry, but I think I didn't make myself clear enough. We have defined the conditional processing of the rev attribute only in our DITA plug-ins, not in Oxygen and also not in a DITAVAL file. That's why I don't understand why the info message suddenly appears.
Thanks,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by Radu »

Hi Christina,

In the Oxygen Preferences->"Editor / Edit Modes / Author / Profiling/Conditional Text / Attributes and Condition Sets" page there is a setting named "Report invalid profiling attribute values (DITA only)". I assume you have it checked on your side, by default it is unchecked. Based on this checkbox we report if somewhere in the DITA XML content there are profiling attributes with values which are not defined in the preferences page. But this checkbox has been around for some time, maybe you accidentally checked it after the Oxygen 25.1 to 26 upgrade?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ckabstein
Posts: 150
Joined: Fri Apr 24, 2015 12:28 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by ckabstein »

Hi Radu,
The "Report invalid profiling attribute values (DITA only)" setting is deactivated in both versions. :)
Any other ideas?
Thanks,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by Radu »

Hi Christina,
In the DITA Maps Manager view if you use the "Validate and check for completeness" toolbar button, the "DITA Map Completeness Check" dialog which shows up should have a checbox named "Report attributes and values which conflict with profiling preferences". I think it is checked on your side, by default it is unchecked. If checked, Oxygen again attempts to report if profiling attribute values used in the DITA XML content are not defined in the preferences.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ckabstein
Posts: 150
Joined: Fri Apr 24, 2015 12:28 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by ckabstein »

Hi Radu,

Yes, that option is checked on purpose because we want authors to check if they have used incorrect attribute values. If I deactivate this, such issues will not be found.
I don't understand why the rev attribute turns up in particular. Other attributes have also not been added to the profiling settings, but still they don't appear in the validation report.

Thanks,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Info message for profiling/conditional text when validating DITA documents

Post by Radu »

Hi Christina,
Other attributes have also not been added to the profiling settings, but still they don't appear in the validation report.
If those attributes are profiling/filtering attributes Oxygen should issue warnings also about them, so not sure, I do not know the specifics, how those attributes are defined in your DITA XML specialization...
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply