Pages: 1
Print
Author Topic: Custom prefix "Example #-#" is not being generated for Example Title in Eclipse  (Read 1941 times)
njmyers13
Member

Posts: 12


« on: May 14, 2014, 10:39:43 AM »

We have a customization file "xm_commons_mod.xsl" in ...AppData\Roaming\SoftQuad\XMetaL Shared\DITA_OT\plugins\xmfo\Customization\fo\xsl\. Code in this file adds a prefix to each Example Title: "Example Ch#-Example#". For example: "Example 2-1 My Sample Output"
The PDF output correctly includes the example title prefixes. However, the Eclipse and Webhelp output do not. These output formats only have the original title. For example, "My Sample Output". Is this a bug or is there another means of adding the prefix to the Eclipse/Webhelp output?

This is the xsl code:

   <!-- example formatting to include chapter number and reset example numbering -->
           
           <xsl:template match="*[contains(@class,' topic/example ')]/*[contains(@class,' topic/title ')]">
                 <fo:block xsl:use-attribute-sets="table.title" id="{@id}">
                 
                    <xsl:call-template name="insertVariable">
                            <xsl:with-param name="theVariableID" select="'Example'"/>
                            <xsl:with-param name="theParameters">
                              <chapNum>
                                <xsl:call-template name="currentChapterPlusDash"/>
                              </chapNum>
                              <number><xsl:call-template name="countInChapter">
                                  <xsl:with-param name="type">example</xsl:with-param>
                                </xsl:call-template>
                              </number>
                              <title><xsl:apply-templates/></title>
                            </xsl:with-param>
                        </xsl:call-template>
                 </fo:block>
       </xsl:template>


We are using XMetaL Author Enterprise 8.0.

Thanks,
Nicole
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: May 14, 2014, 12:08:06 PM »

Does this mean you have attempted to make similar changes to the XSLT that drives the Webhelp and Eclipse outputs? What you say here suggests that work has not been done.
Logged
njmyers13
Member

Posts: 12


« Reply #2 on: May 14, 2014, 03:55:06 PM »

HI Derek,
Thanks for the quick reply. You're right. Looks like we also need to add something to the XSLT. Thanks!
Nicole
Logged
Pages: 1
Print
Jump to: