Need to change the footer value as per the parent and child topic attributes
Posted: Fri Jun 25, 2021 1:46 am
Hi,
Now I'm working on creating the footer value for pdf using dita-ot pdf conversion. I'm having single parent topic with multiple child topics with outputclass attribute and I need to create the footer text for certain child topic
Input Dita Having:
I have created the customized footnote for the pdf using static-content.xsl
Now I'm getting DEF as footer for all the topics, but I need each child topic gets their corresponding footer value. Seems like it allowing only one topic for the footer. Please help me to get the footer value for each child topics. Thanks in advance!!!
Now I'm working on creating the footer value for pdf using dita-ot pdf conversion. I'm having single parent topic with multiple child topics with outputclass attribute and I need to create the footer text for certain child topic
Input Dita Having:
Code: Select all
[i]<topic class="- topic/topic " [b]outputclass="heading"[/b]>
<title outputclass="CD_Map_Heading-hide">HIDE TOPIC</title>
<topic class="- topic/topic " [b]outputclass="DEF"[/b]>
<title>DEFINITION</title>
</topic>
<topic class="- topic/topic " [b]outputclass="REV"[/b]>
<title>REVOLUTION</title>
</topic>
</topic>[/i]
Code: Select all
<xsl:template name="insertBodyOddFooter">
<fo:static-content flow-name="odd-body-footer">
<fo:block> </fo:block>
<fo:block xsl:use-attribute-sets="__body__odd__footer">
<xsl:choose>
<xsl:when test="*[contains(@outputclass, 'DEF')]">
<xsl:text>DEF</xsl:text>
</xsl:when>
<xsl:when test="*[contains(@outputclass, 'REV')]">
<xsl:text>REV</xsl:text>
</xsl:when>
<xsl:otherwise>
<fo:block-container position="absolute">
<fo:block padding-top="20pt" text-align="center">
<fo:page-number/>
</fo:block>
</fo:block-container>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:static-content>
</xsl:template>