DITAVAL precedence or priority
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 29
- Joined: Mon Feb 06, 2017 11:47 am
DITAVAL precedence or priority
Post by Fredrik_Lönn »
Hi,
I have a customer facing document built on a ditamap. In this ditamap I use topicref to include another ditamap. In the same topicref, after the ditamap I have a ditavalref referencing a ditaval file. The structure basically looks like this:
map_2 contains a topic with filtered content.
The ditaval_1 file contains:
I use this method to filter out content that should not be included in the document sent to the customer. That content has the attribute "otherprops" set to "Internal".
I generate the customer facing version with a scenario specifying no additional ditaval file.
For internal purpose I want to use a ditaval_2 file to include the internal content.
The ditaval_2 file contains:
I apply this ditaval_2 file in this scenario by referencing it on the Filters tab under "Use DITAVAL file". My intention is that it should be applied in addition to the
This does not work as I hoped.
I can get the wanted results if I instead change the files as follows and reverse the purpose (internal vs external) of each transformation scenario:
The ditaval_1 file contains:
The ditaval_2 file contains:
Using the second strategy would cause other issues, and I would like to understand why the first strategy does not work!
I have a customer facing document built on a ditamap. In this ditamap I use topicref to include another ditamap. In the same topicref, after the ditamap I have a ditavalref referencing a ditaval file. The structure basically looks like this:
Code: Select all
<map_1>
<topicref map_2>
<ditvalref ditaval_1/>
</topicref>
</map_1>
The ditaval_1 file contains:
Code: Select all
<val>
<prop action="exclude"/>
</val>
I generate the customer facing version with a scenario specifying no additional ditaval file.
For internal purpose I want to use a ditaval_2 file to include the internal content.
The ditaval_2 file contains:
Code: Select all
<val>
<prop action="include" att="audience" val="Internal"/>
</val>
This does not work as I hoped.
I can get the wanted results if I instead change the files as follows and reverse the purpose (internal vs external) of each transformation scenario:
The ditaval_1 file contains:
Code: Select all
<val>
<prop action="exclude"/>
<prop action="include" att="audience" val="Internal"/>
</val>
Code: Select all
<val>
<prop action="exclude" att="audience" val="Internal"/>
</val>
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITAVAL precedence or priority
Hi,
I looked a little bit in the DITA 1.3 specs but I cannot find there a place explaining how the global DITAVAL file interacts with the branch ditavalref.
Maybe you could consider asking about this on the DITA Users List, the DITA 1.3 specification implementors are registered on it so they may have a better idea about this.
Regards,
Radu
I looked a little bit in the DITA 1.3 specs but I cannot find there a place explaining how the global DITAVAL file interacts with the branch ditavalref.
Maybe you could consider asking about this on the DITA Users List, the DITA 1.3 specification implementors are registered on it so they may have a better idea about this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 29
- Joined: Mon Feb 06, 2017 11:47 am
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service