Pages: 1
Print
Author Topic: Displaying draft-comment elements in PDF output  (Read 4078 times)
IF
Member

Posts: 80


« on: September 21, 2010, 12:08:04 PM »

How can I display draft-comment elements in the PDF output? I can see the comments in HTML output but not in the PDF output. Using XMetal Author 6.0 with output XMetal Enhanced PDF via RenderX XEP. Thanks. Isabelle
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: September 24, 2010, 02:43:59 PM »

This is a limitation in the DITA Open Toolkit that we ship (version 1.4.2.1 is included with XMetaL Author Enterprise 6.0)

There is discussion of it having been addressed in a newer version of the 1.5 DITA OT that we plan to include with our next major release of XMetaL Author Enterprise.

Please see:
http://dita.xml.org/wiki/plans-for-the-dita-open-toolkit-pdf2-plug-in

The argument that needs to be enabled in the DITA OT in order for draft-comment to appear in PDF output is "args.draft". XMetaL Author Enterprise will pass this argument to the DITA OT when you check the checkbox in our UI, but the DITA OT does not do anything with that argument when producing a PDF.
Logged
IF
Member

Posts: 80


« Reply #2 on: September 27, 2010, 05:30:37 PM »

In case anyone cares, I've managed to display the comments by brute force. I edited the file
%APPDATA%\SoftQuad\XMetaL Shared\DITA_OT\demo\xmfo\xsl\fo\commons.xsl as follows:

  <xsl:template match="*[contains(@class,' topic/draft-comment ')]">
    <!--IF 26Sep2010    <xsl:if test="$publishRequiredCleanup = 'yes'">     -->
            <fo:block xsl:use-attribute-sets="draft-comment" id="{@id}">
                <fo:block xsl:use-attribute-sets="draft-comment__label">
         <!--IF 26Sep2010   Disposition:
                    <xsl:value-of select="@disposition"/> /
            Status:
                    <xsl:value-of select="@status"/>     -->
                </fo:block>
                <xsl:apply-templates/>
            </fo:block>
     <!--IF 26Sep2010    </xsl:if>    -->
    </xsl:template>

Comments now appear in a lovely pink box. Not sure where the pink comes from but it does not really matter.

Must remember in a few months or years when the manual is released to edit this file back to the way it was...
Logged
Pages: 1
Print
Jump to:  

email us