Why are my <draft-comments> hidden in PDF using FM2020 but shown in PDF using FM2022?
I have inherited a FM project that uses DITA 1.3 and FM2020. It has been working with FM2020 for a few years, and I am now trying to upgrade to FM2022. The first problem I have encountered is that in FM2020 all <draft-comments> were hidden in the published PDF, whereas they are now included/shown in a PDF published using FM2022. I am trying to solve this problem and realized that I have no idea how/why the <draft-comments> are hidden in a PDF published using FM2020. The only clue I have is the following comment from the previous FM-admin:
“The Audience attribute is also contained in the DITA file, and is nominally used to hide draft-comments.”
Details:
- I am publishing my PDFs using a .STS file (i.e. as-shipped with FM)
- I have a customized structapps.fm which points to \templates folder which contains our custom templates
- For testing, I have created from scratch a very simple .DITAMAP with 3 .DITA files: one concept, one reference and one task.
- Each of these .DITA files has various <draft-comment> elements inside other elements (as allowed by DITA)
- I have viewed the XML of my .DITA files and confirmed that there are no conditional tags (see sample XML below)
- When I look at my .DITA files using Structured View, I can see that the Audience attribute for <draft-comments> is set to "internal" by default
- This is true for both FM2020 and FM2022
Things I have tried:
- I uninstalled FM2020 and FM2022 and started "fresh" with both versions
- There was no change to the behaviour of either version.
- I have tried publishing my PDFs using both the as-shipped .STS file and with our own customized .STS file
- <draft-comments> are hidden in PDF published using FM2020 (both STS)
- <draft-comments> are visible in PDF published using FM2022 (both STS)
- Repeating this experiment on another computer
- I get the same results on both computers
- I opened and re-saved both my structapps.fm file and my templates to FM2022.
- I get the same output/results with the updated files
- Using the as-shipped structapps.fm and templates
- For both FM2020 and FM2022, if using the as-shipped files, the <draft-comments> will be published in the PDF (i.e. they are not hidden)
- I have opened the Manage Attribute Expressions dialog (using View > Filter by Attribute) in the following files using FM2020, and it always appear blank (i.e. there does not appear to be any expressions for filtering by Attribute):
- My output template (i.e. used by my custom .STS file)
- My concept.template.fm
- Several of my .DITA files (i.e. the simple ones I created from scratch)
How might the Audience attribute be used to hide the <draft-comments> in a published PDF? Where else should I be looking? Why would this not work when I upgrade from FM2020 to FM2022?
Sample contents of one of my .DITA files:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA 1.3 Concept//EN" "technicalContent/dtd/concept.dtd" [
]>
<concept id="id249A9000PE8">
<title>
<draft-comment>Draft-comment
inside <title></draft-comment>Sample Concept Topic
</title>
<conbody>
<draft-comment>Draft-comment inside <conbody>, but NOT
inside <p> element.</draft-comment>
<p>Paragraph #1 (WITHOUT a draft-comment).</p>
<p>
<draft-comment>Draft-comment inside <p></draft-comment>Paragraph
#2 (WITH a draft comment INSIDE the <p> element).
</p>
<p>Paragraph #3 (WITHOUT a draft-comment).</p>
</conbody>
</concept>
