Can't get the conditional profiling to work, must be missing something.

kmacphee
Posts: 1
Joined: Wed Apr 28, 2021 9:19 pm

Can't get the conditional profiling to work, must be missing something.

Post by kmacphee » Thu Apr 29, 2021 6:36 pm

Hi there!

I am a relatively new DITA/Oxygen XML Editor (<oXygen/> XML Editor 23.1, build 2021040908). I am trying to set up profiling/conditional tagging so that I can write "Version 2" content in parallel with the "main" Help center updates needed for minor releases. I need to be able to shut off the V2 content to deliver for the minor releases.

I have watched the relevant videos and read the documentation on how to do this, but I am stuck.

This is what I have done:
  • As an experiment to start with, I have added just one "test" topic reference to my map file that is a Version 2 topic.
  • I am using the predefined profile conditions in Oxygen -- specifically Revision 2.0.
  • I have tagged the test topic with Revision 2.0 condition via the Edit Topic Reference Properties dialog box (Profiling tab)
  • I have created a DITAVAL file which contains the following:
<?xml version="1.0" encoding="UTF-8"?>
<val>
<prop action="exclude" att="revision" val="2.0"/>
</val>
  • I have edited my transformation scenario (responsive web help) to use the DITAVAL file I created as a filter.
And yet, when I run the transform, the test topic is still showing. What I am I doing wrong? Or am I missing something? Help? :shock:

Radu
Posts: 7468
Joined: Fri Jul 09, 2004 5:18 pm

Re: Can't get the conditional profiling to work, must be missing something.

Post by Radu » Fri Apr 30, 2021 9:23 am

Hi,

There is no "revision" attribute in DITA, so your DITAVAL filter file probably does not match any element. There is a "rev" attribute used for revisions but it cannot be used for filtering, just for flagging content with a certain color, please see the DITA 1.3 standard for more details about what attributes can be used for filtering:

https://www.oxygenxml.com/dita/1.3/spec ... butes.html

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

Post Reply