Ditaval files define conditional processing rules for your transforms. When you want to apply conditional processing in your output, you can put these rules into a ditaval file.

Oxygen has the same ditaval functionality built into its interface, so you don't need to create a custom ditaval file in order to have the rules reflected in your output. You may be pushing your content out to another system, however (such as Fluid Topics or Suiteshare), and in that case, you'll need to create ditaval files. Having the ditaval files available in your dita files will instruct the system on how to publish your content.

The ditaval file consists of the following:
    <val>
    <prop action="exclude" att="platform" val="mac" />
    <prop action="exclude" att="platform" val="linux" />
    <prop action="exclude" att="product" val="acme"/>
</val>

You specify the action (almost always exclude), the attribute (att), and the value (val). In this ditaval file, any properties that have platform="mac" or platform="linux" or product="acme" will be excluded from the output. Any elements with those attribute values will be excluded.

(You can change the default action to include and run more sophisticated logic in your ditaval file if you so choose. But by default everything is included. The basic idea is to specify what you want excluded.)


Get new posts delivered straight to your inbox.

Subscriber count: 3,505