Example: Using <dvrResourceSuffix> to control resource names
This section is non-normative.
In this scenario, a <ditavalref> element uses the nested
<dvrResourceSuffix> element to control the names of resources within
the filtered branch.
The following code sample shows a simple branch with a parent and child topic, where the
branch uses a
<ditavalref> element and
<dvrResourceSuffix>.<topicref href="branch-01.dita">
<ditavalref href="condition-01.ditaval">
<ditavalmeta>
<dvrResourceSuffix>-cond01</dvrResourceSuffix>
</ditavalmeta>
</ditavalref>
<topicref href="topics/subtopic-01.dita"/>
</topicref>After the
<ditavalref> is evaluated:- The effective file name of resource branch-01.dita is branch-01-cond01.dita.
- The effective file name of the resource topics/subtopic-01.dita is topics/subtopic-01-cond01.dita.